<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>perl561delta - what&#39;s new for perl v5.6.1 - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/perl561delta">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl561delta.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/perl561delta">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/perl561delta">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/perl561delta">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/perl561delta">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/perl561delta">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/perl561delta">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/perl561delta">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/perl561delta">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/perl561delta">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/perl561delta">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/perl561delta">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/perl561delta">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/perl561delta">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/perl561delta">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/perl561delta">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/perl561delta">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/perl561delta">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/perl561delta">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/perl561delta">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/perl561delta">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/perl561delta">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/perl561delta">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/perl561delta">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/perl561delta">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/perl561delta">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/perl561delta">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/perl561delta">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/perl561delta">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/perl561delta">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/perl561delta">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/perl561delta">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/perl561delta">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/perl561delta">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/perl561delta">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/perl561delta">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/perl561delta">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/perl561delta">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/perl561delta">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/perl561delta">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/perl561delta">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/perl561delta">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/perl561delta">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/perl561delta">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/perl561delta">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/perl561delta">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/perl561delta">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/perl561delta">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/perl561delta">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/perl561delta">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/perl561delta">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/perl561delta">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/perl561delta">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/perl561delta">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/perl561delta">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/perl561delta">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/perl561delta">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/perl561delta">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/perl561delta">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/perl561delta">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/perl561delta">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/perl561delta">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/perl561delta">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/perl561delta">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/perl561delta">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/perl561delta">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/perl561delta">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/perl561delta">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/perl561delta">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/perl561delta">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/perl561delta">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/perl561delta">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/perl561delta">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/perl561delta">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/perl561delta">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/perl561delta">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/perl561delta">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/perl561delta">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/perl561delta">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/perl561delta">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/perl561delta">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl561delta.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/perl561delta">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/perl561delta">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/perl561delta">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/perl561delta">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/perl561delta">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/perl561delta">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/perl561delta">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/perl561delta">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/perl561delta">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/perl561delta">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/perl561delta">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/perl561delta">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/perl561delta">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/perl561delta">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/perl561delta">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/perl561delta">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/perl561delta">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/perl561delta">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/perl561delta">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/perl561delta">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/perl561delta">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/perl561delta">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/perl561delta">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/perl561delta">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/perl561delta">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/perl561delta">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/perl561delta">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/perl561delta">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/perl561delta">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/perl561delta">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/perl561delta">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/perl561delta">5.35.1</a>
          <a class="dropdown-item active" href="perl561delta.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl561delta.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="perl561delta.html">perl561delta</a>
          <div id="more">
            (<a href="perl561delta.txt">source</a>,
            <a href="https://metacpan.org/pod/perl561delta">CPAN</a>)
          </div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#DESCRIPTION">DESCRIPTION</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Summary-of-changes-between-5.6.0-and-5.6.1">Summary of changes between 5.6.0 and 5.6.1</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Security-Issues">Security Issues</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Core-bug-fixes">Core bug fixes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Core-features">Core features</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Configuration-issues">Configuration issues</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Documentation">Documentation</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Bundled-modules">Bundled modules</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Platform-specific-improvements">Platform-specific improvements</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Core-Enhancements">Core Enhancements</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Interpreter-cloning,-threads,-and-concurrency">Interpreter cloning, threads, and concurrency</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Lexically-scoped-warning-categories">Lexically scoped warning categories</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Unicode-and-UTF-8-support">Unicode and UTF-8 support</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Support-for-interpolating-named-characters">Support for interpolating named characters</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#%22our%22-declarations">&quot;our&quot; declarations</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Support-for-strings-represented-as-a-vector-of-ordinals">Support for strings represented as a vector of ordinals</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Improved-Perl-version-numbering-system">Improved Perl version numbering system</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#New-syntax-for-declaring-subroutine-attributes">New syntax for declaring subroutine attributes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#File-and-directory-handles-can-be-autovivified">File and directory handles can be autovivified</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#open()-with-more-than-two-arguments">open() with more than two arguments</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#64-bit-support1">64-bit support</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Large-file-support">Large file support</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Long-doubles">Long doubles</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#%22more-bits%22">&quot;more bits&quot;</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Enhanced-support-for-sort()-subroutines">Enhanced support for sort() subroutines</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#sort-$coderef-@foo-allowed">sort $coderef @foo allowed</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#File-globbing-implemented-internally">File globbing implemented internally</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Support-for-CHECK-blocks">Support for CHECK blocks</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#POSIX-character-class-syntax-%5B:-:%5D-supported">POSIX character class syntax [: :] supported</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Better-pseudo-random-number-generator">Better pseudo-random number generator</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Improved-qw//-operator">Improved qw// operator</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Better-worst-case-behavior-of-hashes">Better worst-case behavior of hashes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#pack()-format-&#39;Z&#39;-supported">pack() format &#39;Z&#39; supported</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#pack()-format-modifier-&#39;!&#39;-supported">pack() format modifier &#39;!&#39; supported</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#pack()-and-unpack()-support-counted-strings">pack() and unpack() support counted strings</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Comments-in-pack()-templates">Comments in pack() templates</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Weak-references">Weak references</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Binary-numbers-supported">Binary numbers supported</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Lvalue-subroutines1">Lvalue subroutines</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Some-arrows-may-be-omitted-in-calls-through-references">Some arrows may be omitted in calls through references</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Boolean-assignment-operators-are-legal-lvalues">Boolean assignment operators are legal lvalues</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#exists()-is-supported-on-subroutine-names">exists() is supported on subroutine names</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#exists()-and-delete()-are-supported-on-array-elements">exists() and delete() are supported on array elements</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Pseudo-hashes-work-better">Pseudo-hashes work better</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Automatic-flushing-of-output-buffers">Automatic flushing of output buffers</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Better-diagnostics-on-meaningless-filehandle-operations">Better diagnostics on meaningless filehandle operations</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Where-possible,-buffered-data-discarded-from-duped-input-filehandle">Where possible, buffered data discarded from duped input filehandle</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#eof()-has-the-same-old-magic-as-%3C%3E">eof() has the same old magic as &lt;&gt;</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#binmode()-can-be-used-to-set-:crlf-and-:raw-modes">binmode() can be used to set :crlf and :raw modes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#-T-filetest-recognizes-UTF-8-encoded-files-as-%22text%22">-T filetest recognizes UTF-8 encoded files as &quot;text&quot;</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#system(),-backticks-and-pipe-open-now-reflect-exec()-failure">system(), backticks and pipe open now reflect exec() failure</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Improved-diagnostics">Improved diagnostics</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Diagnostics-follow-STDERR">Diagnostics follow STDERR</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#More-consistent-close-on-exec-behavior">More consistent close-on-exec behavior</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#syswrite()-ease-of-use">syswrite() ease-of-use</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Better-syntax-checks-on-parenthesized-unary-operators">Better syntax checks on parenthesized unary operators</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Bit-operators-support-full-native-integer-width">Bit operators support full native integer width</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Improved-security-features">Improved security features</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#More-functional-bareword-prototype-(*)">More functional bareword prototype (*)</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#require-and-do-may-be-overridden">require and do may be overridden</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#$%5EX-variables-may-now-have-names-longer-than-one-character">$^X variables may now have names longer than one character</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#New-variable-$%5EC-reflects-c-switch">New variable $^C reflects -c switch</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#New-variable-$%5EV-contains-Perl-version-as-a-string">New variable $^V contains Perl version as a string</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Optional-Y2K-warnings">Optional Y2K warnings</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Arrays-now-always-interpolate-into-double-quoted-strings">Arrays now always interpolate into double-quoted strings</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#@-and-@+-provide-starting/ending-offsets-of-regex-submatches">@- and @+ provide starting/ending offsets of regex submatches</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Modules-and-Pragmata">Modules and Pragmata</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Modules">Modules</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Pragmata">Pragmata</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Utility-Changes">Utility Changes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#dprofpp">dprofpp</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#find2perl">find2perl</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#h2xs">h2xs</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#perlcc">perlcc</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#perldoc">perldoc</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#The-Perl-Debugger">The Perl Debugger</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Improved-Documentation">Improved Documentation</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Performance-enhancements">Performance enhancements</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Simple-sort()-using-%7B-$a-%3C=%3E-$b-%7D-and-the-like-are-optimized">Simple sort() using { $a &lt;=&gt; $b } and the like are optimized</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Optimized-assignments-to-lexical-variables">Optimized assignments to lexical variables</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Faster-subroutine-calls">Faster subroutine calls</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#delete(),-each(),-values()-and-hash-iteration-are-faster">delete(), each(), values() and hash iteration are faster</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Installation-and-Configuration-Improvements">Installation and Configuration Improvements</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#-Dusethreads-means-something-different">-Dusethreads means something different</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#New-Configure-flags">New Configure flags</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Threadedness-and-64-bitness-now-more-daring">Threadedness and 64-bitness now more daring</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Long-Doubles">Long Doubles</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#-Dusemorebits">-Dusemorebits</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#-Duselargefiles">-Duselargefiles</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#installusrbinperl">installusrbinperl</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#SOCKS-support">SOCKS support</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#-A-flag">-A flag</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Enhanced-Installation-Directories">Enhanced Installation Directories</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#gcc-automatically-tried-if-&#39;cc&#39;-does-not-seem-to-be-working">gcc automatically tried if &#39;cc&#39; does not seem to be working</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Platform-specific-changes">Platform specific changes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Supported-platforms">Supported platforms</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#DOS">DOS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#OS390-(OpenEdition-MVS)">OS390 (OpenEdition MVS)</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#VMS">VMS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Win321">Win32</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Significant-bug-fixes">Significant bug fixes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#%3CHANDLE%3E-on-empty-files">&lt;HANDLE&gt; on empty files</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#eval-&#39;...&#39;-improvements">eval &#39;...&#39; improvements</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#All-compilation-errors-are-true-errors">All compilation errors are true errors</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Implicitly-closed-filehandles-are-safer">Implicitly closed filehandles are safer</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Behavior-of-list-slices-is-more-consistent">Behavior of list slices is more consistent</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#(%5C$)-prototype-and-$foo%7Ba%7D">(\$) prototype and $foo{a}</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#goto-&amp;sub-and-AUTOLOAD">goto &amp;sub and AUTOLOAD</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#-bareword-allowed-under-use-integer">-bareword allowed under use integer</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Failures-in-DESTROY()">Failures in DESTROY()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Locale-bugs-fixed">Locale bugs fixed</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Memory-leaks1">Memory leaks</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Spurious-subroutine-stubs-after-failed-subroutine-calls">Spurious subroutine stubs after failed subroutine calls</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Taint-failures-under-U">Taint failures under -U</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#END-blocks-and-the-c-switch">END blocks and the -c switch</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Potential-to-leak-DATA-filehandles">Potential to leak DATA filehandles</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#New-or-Changed-Diagnostics">New or Changed Diagnostics</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#New-tests">New tests</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Incompatible-Changes">Incompatible Changes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Perl-Source-Incompatibilities">Perl Source Incompatibilities</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#C-Source-Incompatibilities">C Source Incompatibilities</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Compatible-C-Source-API-Changes">Compatible C Source API Changes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Binary-Incompatibilities">Binary Incompatibilities</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Known-Problems">Known Problems</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Localizing-a-tied-hash-element-may-leak-memory">Localizing a tied hash element may leak memory</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Known-test-failures">Known test failures</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#EBCDIC-platforms-not-fully-supported">EBCDIC platforms not fully supported</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#UNICOS/mk-CC-failures-during-Configure-run">UNICOS/mk CC failures during Configure run</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Arrow-operator-and-arrays">Arrow operator and arrays</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Experimental-features">Experimental features</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Obsolete-Diagnostics">Obsolete Diagnostics</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#Reporting-Bugs">Reporting Bugs</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#SEE-ALSO">SEE ALSO</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl561delta.html#HISTORY">HISTORY</a>
              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="perl561delta.html#NAME">#</a>NAME</h1>

<p>perl561delta - what&#39;s new for perl v5.6.1</p>

<h1 id="DESCRIPTION"><a class="permalink" href="perl561delta.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<p>This document describes differences between the 5.005 release and the 5.6.1 release.</p>

<h1 id="Summary-of-changes-between-5.6.0-and-5.6.1"><a class="permalink" href="perl561delta.html#Summary-of-changes-between-5.6.0-and-5.6.1">#</a><a id="Summary"></a>Summary of changes between 5.6.0 and 5.6.1</h1>

<p>This section contains a summary of the changes between the 5.6.0 release and the 5.6.1 release. More details about the changes mentioned here may be found in the <i>Changes</i> files that accompany the Perl source distribution. See <a href="perlhack.html">perlhack</a> for pointers to online resources where you can inspect the individual patches described by these changes.</p>

<h2 id="Security-Issues"><a class="permalink" href="perl561delta.html#Security-Issues">#</a><a id="Security"></a>Security Issues</h2>

<p>suidperl will not run /bin/mail anymore, because some platforms have a /bin/mail that is vulnerable to buffer overflow attacks.</p>

<p>Note that suidperl is neither built nor installed by default in any recent version of perl. Use of suidperl is highly discouraged. If you think you need it, try alternatives such as sudo first. See http://www.courtesan.com/sudo/ .</p>

<h2 id="Core-bug-fixes"><a class="permalink" href="perl561delta.html#Core-bug-fixes">#</a><a id="Core"></a>Core bug fixes</h2>

<p>This is not an exhaustive list. It is intended to cover only the significant user-visible changes.</p>

<dl>

<dt id="UNIVERSAL::isa()"><a class="permalink" href="perl561delta.html#UNIVERSAL::isa()">#</a><a id="UNIVERSAL"></a><a id="UNIVERSAL::isa"></a><code>UNIVERSAL::isa()</code></dt>
<dd>

<p>A bug in the caching mechanism used by <code>UNIVERSAL::isa()</code> that affected base.pm has been fixed. The bug has existed since the 5.005 releases, but wasn&#39;t tickled by base.pm in those releases.</p>

</dd>
<dt id="Memory-leaks"><a class="permalink" href="perl561delta.html#Memory-leaks">#</a><a id="Memory"></a>Memory leaks</dt>
<dd>

<p>Various cases of memory leaks and attempts to access uninitialized memory have been cured. See <a href="perl561delta.html#Known-Problems">&quot;Known Problems&quot;</a> below for further issues.</p>

</dd>
<dt id="Numeric-conversions"><a class="permalink" href="perl561delta.html#Numeric-conversions">#</a><a id="Numeric"></a>Numeric conversions</dt>
<dd>

<p>Numeric conversions did not recognize changes in the string value properly in certain circumstances.</p>

<p>In other situations, large unsigned numbers (those above 2**31) could sometimes lose their unsignedness, causing bogus results in arithmetic operations.</p>

<p>Integer modulus on large unsigned integers sometimes returned incorrect values.</p>

<p>Perl 5.6.0 generated &quot;not a number&quot; warnings on certain conversions where previous versions didn&#39;t.</p>

<p>These problems have all been rectified.</p>

<p>Infinity is now recognized as a number.</p>

</dd>
<dt id="qw(a\\b)"><a class="permalink" href="perl561delta.html#qw(a%5C%5Cb)">#</a><a id="qw"></a><a id="qw-a-b"></a>qw(a\\b)</dt>
<dd>

<p>In Perl 5.6.0, qw(a\\b) produced a string with two backslashes instead of one, in a departure from the behavior in previous versions. The older behavior has been reinstated.</p>

</dd>
<dt id="caller()"><a class="permalink" href="perl561delta.html#caller()">#</a><a id="caller"></a>caller()</dt>
<dd>

<p>caller() could cause core dumps in certain situations. Carp was sometimes affected by this problem.</p>

</dd>
<dt id="Bugs-in-regular-expressions"><a class="permalink" href="perl561delta.html#Bugs-in-regular-expressions">#</a><a id="Bugs"></a>Bugs in regular expressions</dt>
<dd>

<p>Pattern matches on overloaded values are now handled correctly.</p>

<p>Perl 5.6.0 parsed m/\x{ab}/ incorrectly, leading to spurious warnings. This has been corrected.</p>

<p>The RE engine found in Perl 5.6.0 accidentally pessimised certain kinds of simple pattern matches. These are now handled better.</p>

<p>Regular expression debug output (whether through <code>use re &#39;debug&#39;</code> or via <code>-Dr</code>) now looks better.</p>

<p>Multi-line matches like <code>&quot;a\nxb\n&quot; =~ /(?!\A)x/m</code> were flawed. The bug has been fixed.</p>

<p>Use of $&amp; could trigger a core dump under some situations. This is now avoided.</p>

<p>Match variables $1 et al., weren&#39;t being unset when a pattern match was backtracking, and the anomaly showed up inside <code>/...(?{ ... }).../</code> etc. These variables are now tracked correctly.</p>

<p>pos() did not return the correct value within s///ge in earlier versions. This is now handled correctly.</p>

</dd>
<dt id="&quot;slurp&quot;-mode"><a class="permalink" href="perl561delta.html#%22slurp%22-mode">#</a><a id="slurp-mode"></a>&quot;slurp&quot; mode</dt>
<dd>

<p>readline() on files opened in &quot;slurp&quot; mode could return an extra &quot;&quot; at the end in certain situations. This has been corrected.</p>

</dd>
<dt id="Autovivification-of-symbolic-references-to-special-variables"><a class="permalink" href="perl561delta.html#Autovivification-of-symbolic-references-to-special-variables">#</a><a id="Autovivification"></a>Autovivification of symbolic references to special variables</dt>
<dd>

<p>Autovivification of symbolic references of special variables described in <a href="perlvar.html">perlvar</a> (as in <code>${$num}</code>) was accidentally disabled. This works again now.</p>

</dd>
<dt id="Lexical-warnings"><a class="permalink" href="perl561delta.html#Lexical-warnings">#</a><a id="Lexical"></a>Lexical warnings</dt>
<dd>

<p>Lexical warnings now propagate correctly into <code>eval &quot;...&quot;</code>.</p>

<p><code>use warnings qw(FATAL all)</code> did not work as intended. This has been corrected.</p>

<p>Lexical warnings could leak into other scopes in some situations. This is now fixed.</p>

<p>warnings::enabled() now reports the state of $^W correctly if the caller isn&#39;t using lexical warnings.</p>

</dd>
<dt id="Spurious-warnings-and-errors"><a class="permalink" href="perl561delta.html#Spurious-warnings-and-errors">#</a><a id="Spurious"></a>Spurious warnings and errors</dt>
<dd>

<p>Perl 5.6.0 could emit spurious warnings about redefinition of dl_error() when statically building extensions into perl. This has been corrected.</p>

<p>&quot;our&quot; variables could result in bogus &quot;Variable will not stay shared&quot; warnings. This is now fixed.</p>

<p>&quot;our&quot; variables of the same name declared in two sibling blocks resulted in bogus warnings about &quot;redeclaration&quot; of the variables. The problem has been corrected.</p>

</dd>
<dt id="glob()"><a class="permalink" href="perl561delta.html#glob()">#</a><a id="glob"></a>glob()</dt>
<dd>

<p>Compatibility of the builtin glob() with old csh-based glob has been improved with the addition of GLOB_ALPHASORT option. See <code>File::Glob</code>.</p>

<p>File::Glob::glob() has been renamed to File::Glob::bsd_glob() because the name clashes with the builtin glob(). The older name is still available for compatibility, but is deprecated.</p>

<p>Spurious syntax errors generated in certain situations, when glob() caused File::Glob to be loaded for the first time, have been fixed.</p>

</dd>
<dt id="Tainting"><a class="permalink" href="perl561delta.html#Tainting">#</a>Tainting</dt>
<dd>

<p>Some cases of inconsistent taint propagation (such as within hash values) have been fixed.</p>

<p>The tainting behavior of sprintf() has been rationalized. It does not taint the result of floating point formats anymore, making the behavior consistent with that of string interpolation.</p>

</dd>
<dt id="sort()"><a class="permalink" href="perl561delta.html#sort()">#</a><a id="sort"></a>sort()</dt>
<dd>

<p>Arguments to sort() weren&#39;t being provided the right wantarray() context. The comparison block is now run in scalar context, and the arguments to be sorted are always provided list context.</p>

<p>sort() is also fully reentrant, in the sense that the sort function can itself call sort(). This did not work reliably in previous releases.</p>

</dd>
<dt id="#line-directives"><a class="permalink" href="perl561delta.html#%23line-directives">#</a><a id="line-directives"></a>#line directives</dt>
<dd>

<p>#line directives now work correctly when they appear at the very beginning of <code>eval &quot;...&quot;</code>.</p>

</dd>
<dt id="Subroutine-prototypes"><a class="permalink" href="perl561delta.html#Subroutine-prototypes">#</a><a id="Subroutine"></a>Subroutine prototypes</dt>
<dd>

<p>The (\&amp;) prototype now works properly.</p>

</dd>
<dt id="map()"><a class="permalink" href="perl561delta.html#map()">#</a><a id="map"></a>map()</dt>
<dd>

<p>map() could get pathologically slow when the result list it generates is larger than the source list. The performance has been improved for common scenarios.</p>

</dd>
<dt id="Debugger"><a class="permalink" href="perl561delta.html#Debugger">#</a>Debugger</dt>
<dd>

<p>Debugger exit code now reflects the script exit code.</p>

<p>Condition <code>&quot;0&quot;</code> in breakpoints is now treated correctly.</p>

<p>The <code>d</code> command now checks the line number.</p>

<p><code>$.</code> is no longer corrupted by the debugger.</p>

<p>All debugger output now correctly goes to the socket if RemotePort is set.</p>

</dd>
<dt id="PERL5OPT"><a class="permalink" href="perl561delta.html#PERL5OPT">#</a>PERL5OPT</dt>
<dd>

<p>PERL5OPT can be set to more than one switch group. Previously, it used to be limited to one group of options only.</p>

</dd>
<dt id="chop()"><a class="permalink" href="perl561delta.html#chop()">#</a><a id="chop"></a>chop()</dt>
<dd>

<p>chop(@list) in list context returned the characters chopped in reverse order. This has been reversed to be in the right order.</p>

</dd>
<dt id="Unicode-support"><a class="permalink" href="perl561delta.html#Unicode-support">#</a><a id="Unicode1"></a>Unicode support</dt>
<dd>

<p>Unicode support has seen a large number of incremental improvements, but continues to be highly experimental. It is not expected to be fully supported in the 5.6.x maintenance releases.</p>

<p>substr(), join(), repeat(), reverse(), quotemeta() and string concatenation were all handling Unicode strings incorrectly in Perl 5.6.0. This has been corrected.</p>

<p>Support for <code>tr///CU</code> and <code>tr///UC</code> etc., have been removed since we realized the interface is broken. For similar functionality, see <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

<p>The Unicode Character Database has been updated to version 3.0.1 with additions made available to the public as of August 30, 2000.</p>

<p>The Unicode character classes \p{Blank} and \p{SpacePerl} have been added. &quot;Blank&quot; is like C isblank(), that is, it contains only &quot;horizontal whitespace&quot; (the space character is, the newline isn&#39;t), and the &quot;SpacePerl&quot; is the Unicode equivalent of <code>\s</code> (\p{Space} isn&#39;t, since that includes the vertical tabulator character, whereas <code>\s</code> doesn&#39;t.)</p>

<p>If you are experimenting with Unicode support in perl, the development versions of Perl may have more to offer. In particular, I/O layers are now available in the development track, but not in the maintenance track, primarily to do backward compatibility issues. Unicode support is also evolving rapidly on a daily basis in the development track--the maintenance track only reflects the most conservative of these changes.</p>

</dd>
<dt id="64-bit-support"><a class="permalink" href="perl561delta.html#64-bit-support">#</a><a id="64"></a><a id="bit-support"></a>64-bit support</dt>
<dd>

<p>Support for 64-bit platforms has been improved, but continues to be experimental. The level of support varies greatly among platforms.</p>

</dd>
<dt id="Compiler"><a class="permalink" href="perl561delta.html#Compiler">#</a>Compiler</dt>
<dd>

<p>The B Compiler and its various backends have had many incremental improvements, but they continue to remain highly experimental. Use in production environments is discouraged.</p>

<p>The perlcc tool has been rewritten so that the user interface is much more like that of a C compiler.</p>

<p>The perlbc tools has been removed. Use <code>perlcc -B</code> instead.</p>

</dd>
<dt id="Lvalue-subroutines"><a class="permalink" href="perl561delta.html#Lvalue-subroutines">#</a><a id="Lvalue"></a>Lvalue subroutines</dt>
<dd>

<p>There have been various bugfixes to support lvalue subroutines better. However, the feature still remains experimental.</p>

</dd>
<dt id="IO::Socket"><a class="permalink" href="perl561delta.html#IO::Socket">#</a><a id="IO1"></a>IO::Socket</dt>
<dd>

<p>IO::Socket::INET failed to open the specified port if the service name was not known. It now correctly uses the supplied port number as is.</p>

</dd>
<dt id="File::Find"><a class="permalink" href="perl561delta.html#File::Find">#</a><a id="File"></a>File::Find</dt>
<dd>

<p>File::Find now chdir()s correctly when chasing symbolic links.</p>

</dd>
<dt id="xsubpp"><a class="permalink" href="perl561delta.html#xsubpp">#</a>xsubpp</dt>
<dd>

<p>xsubpp now tolerates embedded POD sections.</p>

</dd>
<dt id="no-Module;"><a class="permalink" href="perl561delta.html#no-Module;">#</a><a id="no"></a><a id="no-Module"></a><code>no Module;</code></dt>
<dd>

<p><code>no Module;</code> does not produce an error even if Module does not have an unimport() method. This parallels the behavior of <code>use</code> vis-a-vis <code>import</code>.</p>

</dd>
<dt id="Tests"><a class="permalink" href="perl561delta.html#Tests">#</a>Tests</dt>
<dd>

<p>A large number of tests have been added.</p>

</dd>
</dl>

<h2 id="Core-features"><a class="permalink" href="perl561delta.html#Core-features">#</a><a id="Core1"></a>Core features</h2>

<p>untie() will now call an UNTIE() hook if it exists. See <a href="perltie.html">perltie</a> for details.</p>

<p>The <code>-DT</code> command line switch outputs copious tokenizing information. See <a href="perlrun.html">perlrun</a>.</p>

<p>Arrays are now always interpolated in double-quotish strings. Previously, <code>&quot;foo@bar.com&quot;</code> used to be a fatal error at compile time, if an array <code>@bar</code> was not used or declared. This transitional behavior was intended to help migrate perl4 code, and is deemed to be no longer useful. See <a href="perl561delta.html#Arrays-now-always-interpolate-into-double-quoted-strings">&quot;Arrays now always interpolate into double-quoted strings&quot;</a>.</p>

<p>keys(), each(), pop(), push(), shift(), splice() and unshift() can all be overridden now.</p>

<p><code>my __PACKAGE__ $obj</code> now does the expected thing.</p>

<h2 id="Configuration-issues"><a class="permalink" href="perl561delta.html#Configuration-issues">#</a><a id="Configuration"></a>Configuration issues</h2>

<p>On some systems (IRIX and Solaris among them) the system malloc is demonstrably better. While the defaults haven&#39;t been changed in order to retain binary compatibility with earlier releases, you may be better off building perl with <code>Configure -Uusemymalloc ...</code> as discussed in the <i>INSTALL</i> file.</p>

<p><code>Configure</code> has been enhanced in various ways:</p>

<ul>

<li><p>Minimizes use of temporary files.</p>

</li>
<li><p>By default, does not link perl with libraries not used by it, such as the various dbm libraries. SunOS 4.x hints preserve behavior on that platform.</p>

</li>
<li><p>Support for pdp11-style memory models has been removed due to obsolescence.</p>

</li>
<li><p>Building outside the source tree is supported on systems that have symbolic links. This is done by running</p>

<pre><code class="plaintext">sh /path/to/source/Configure -Dmksymlinks ...
make all test install</code></pre>

<p>in a directory other than the perl source directory. See <i>INSTALL</i>.</p>

</li>
<li><p><code>Configure -S</code> can be run non-interactively.</p>

</li>
</ul>

<h2 id="Documentation"><a class="permalink" href="perl561delta.html#Documentation">#</a>Documentation</h2>

<p>README.aix, README.solaris and README.macos have been added. README.posix-bc has been renamed to README.bs2000. These are installed as <a href="perlaix.html">perlaix</a>, <a href="perlsolaris.html">perlsolaris</a>, <a href="perlmacos.html">perlmacos</a>, and <a href="perlbs2000.html">perlbs2000</a> respectively.</p>

<p>The following pod documents are brand new:</p>

<pre><code class="plaintext">perlclib	Internal replacements for standard C library functions
perldebtut	Perl debugging tutorial
perlebcdic	Considerations for running Perl on EBCDIC platforms
perlnewmod	Perl modules: preparing a new module for distribution
perlrequick	Perl regular expressions quick start
perlretut	Perl regular expressions tutorial
perlutil	utilities packaged with the Perl distribution</code></pre>

<p>The <i>INSTALL</i> file has been expanded to cover various issues, such as 64-bit support.</p>

<p>A longer list of contributors has been added to the source distribution. See the file <code>AUTHORS</code>.</p>

<p>Numerous other changes have been made to the included documentation and FAQs.</p>

<h2 id="Bundled-modules"><a class="permalink" href="perl561delta.html#Bundled-modules">#</a><a id="Bundled"></a>Bundled modules</h2>

<p>The following modules have been added.</p>

<dl>

<dt id="B::Concise"><a class="permalink" href="perl561delta.html#B::Concise">#</a><a id="B1"></a>B::Concise</dt>
<dd>

<p>Walks Perl syntax tree, printing concise info about ops. See <a href="./B::Concise.html">B::Concise</a>.</p>

</dd>
<dt id="File::Temp"><a class="permalink" href="perl561delta.html#File::Temp">#</a><a id="File1"></a>File::Temp</dt>
<dd>

<p>Returns name and handle of a temporary file safely. See <a href="./File::Temp.html">File::Temp</a>.</p>

</dd>
<dt id="Pod::LaTeX"><a class="permalink" href="perl561delta.html#Pod::LaTeX">#</a><a id="Pod"></a>Pod::LaTeX</dt>
<dd>

<p>Converts Pod data to formatted LaTeX. See <a href="./Pod::LaTeX.html">Pod::LaTeX</a>.</p>

</dd>
<dt id="Pod::Text::Overstrike"><a class="permalink" href="perl561delta.html#Pod::Text::Overstrike">#</a><a id="Pod1"></a>Pod::Text::Overstrike</dt>
<dd>

<p>Converts POD data to formatted overstrike text. See <a href="./Pod::Text::Overstrike.html">Pod::Text::Overstrike</a>.</p>

</dd>
</dl>

<p>The following modules have been upgraded.</p>

<dl>

<dt id="CGI"><a class="permalink" href="perl561delta.html#CGI">#</a>CGI</dt>
<dd>

<p>CGI v2.752 is now included.</p>

</dd>
<dt id="CPAN"><a class="permalink" href="perl561delta.html#CPAN">#</a>CPAN</dt>
<dd>

<p>CPAN v1.59_54 is now included.</p>

</dd>
<dt id="Class::Struct"><a class="permalink" href="perl561delta.html#Class::Struct">#</a><a id="Class"></a>Class::Struct</dt>
<dd>

<p>Various bugfixes have been added.</p>

</dd>
<dt id="DB_File"><a class="permalink" href="perl561delta.html#DB_File">#</a>DB_File</dt>
<dd>

<p>DB_File v1.75 supports newer Berkeley DB versions, among other improvements.</p>

</dd>
<dt id="Devel::Peek"><a class="permalink" href="perl561delta.html#Devel::Peek">#</a><a id="Devel"></a>Devel::Peek</dt>
<dd>

<p>Devel::Peek has been enhanced to support dumping of memory statistics, when perl is built with the included malloc().</p>

</dd>
<dt id="File::Find1"><a class="permalink" href="perl561delta.html#File::Find1">#</a><a id="File2"></a>File::Find</dt>
<dd>

<p>File::Find now supports pre and post-processing of the files in order to sort() them, etc.</p>

</dd>
<dt id="Getopt::Long"><a class="permalink" href="perl561delta.html#Getopt::Long">#</a><a id="Getopt"></a>Getopt::Long</dt>
<dd>

<p>Getopt::Long v2.25 is included.</p>

</dd>
<dt id="IO::Poll"><a class="permalink" href="perl561delta.html#IO::Poll">#</a><a id="IO2"></a>IO::Poll</dt>
<dd>

<p>Various bug fixes have been included.</p>

</dd>
<dt id="IPC::Open3"><a class="permalink" href="perl561delta.html#IPC::Open3">#</a><a id="IPC"></a>IPC::Open3</dt>
<dd>

<p>IPC::Open3 allows use of numeric file descriptors.</p>

</dd>
<dt id="Math::BigFloat"><a class="permalink" href="perl561delta.html#Math::BigFloat">#</a><a id="Math"></a>Math::BigFloat</dt>
<dd>

<p>The fmod() function supports modulus operations. Various bug fixes have also been included.</p>

</dd>
<dt id="Math::Complex"><a class="permalink" href="perl561delta.html#Math::Complex">#</a><a id="Math1"></a>Math::Complex</dt>
<dd>

<p>Math::Complex handles inf, NaN etc., better.</p>

</dd>
<dt id="Net::Ping"><a class="permalink" href="perl561delta.html#Net::Ping">#</a><a id="Net"></a>Net::Ping</dt>
<dd>

<p>ping() could fail on odd number of data bytes, and when the echo service isn&#39;t running. This has been corrected.</p>

</dd>
<dt id="Opcode"><a class="permalink" href="perl561delta.html#Opcode">#</a>Opcode</dt>
<dd>

<p>A memory leak has been fixed.</p>

</dd>
<dt id="Pod::Parser"><a class="permalink" href="perl561delta.html#Pod::Parser">#</a><a id="Pod2"></a>Pod::Parser</dt>
<dd>

<p>Version 1.13 of the Pod::Parser suite is included.</p>

</dd>
<dt id="Pod::Text"><a class="permalink" href="perl561delta.html#Pod::Text">#</a><a id="Pod3"></a>Pod::Text</dt>
<dd>

<p>Pod::Text and related modules have been upgraded to the versions in podlators suite v2.08.</p>

</dd>
<dt id="SDBM_File"><a class="permalink" href="perl561delta.html#SDBM_File">#</a>SDBM_File</dt>
<dd>

<p>On dosish platforms, some keys went missing because of lack of support for files with &quot;holes&quot;. A workaround for the problem has been added.</p>

</dd>
<dt id="Sys::Syslog"><a class="permalink" href="perl561delta.html#Sys::Syslog">#</a><a id="Sys"></a>Sys::Syslog</dt>
<dd>

<p>Various bug fixes have been included.</p>

</dd>
<dt id="Tie::RefHash"><a class="permalink" href="perl561delta.html#Tie::RefHash">#</a><a id="Tie"></a>Tie::RefHash</dt>
<dd>

<p>Now supports Tie::RefHash::Nestable to automagically tie hashref values.</p>

</dd>
<dt id="Tie::SubstrHash"><a class="permalink" href="perl561delta.html#Tie::SubstrHash">#</a><a id="Tie1"></a>Tie::SubstrHash</dt>
<dd>

<p>Various bug fixes have been included.</p>

</dd>
</dl>

<h2 id="Platform-specific-improvements"><a class="permalink" href="perl561delta.html#Platform-specific-improvements">#</a><a id="Platform"></a>Platform-specific improvements</h2>

<p>The following new ports are now available.</p>

<dl>

<dt id="NCR-MP-RAS"><a class="permalink" href="perl561delta.html#NCR-MP-RAS">#</a><a id="NCR"></a>NCR MP-RAS</dt>
<dd>

</dd>
<dt id="NonStop-UX"><a class="permalink" href="perl561delta.html#NonStop-UX">#</a><a id="NonStop"></a>NonStop-UX</dt>
<dd>

</dd>
</dl>

<p>Perl now builds under Amdahl UTS.</p>

<p>Perl has also been verified to build under Amiga OS.</p>

<p>Support for EPOC has been much improved. See README.epoc.</p>

<p>Building perl with -Duseithreads or -Duse5005threads now works under HP-UX 10.20 (previously it only worked under 10.30 or later). You will need a thread library package installed. See README.hpux.</p>

<p>Long doubles should now work under Linux.</p>

<p>Mac OS Classic is now supported in the mainstream source package. See README.macos.</p>

<p>Support for MPE/iX has been updated. See README.mpeix.</p>

<p>Support for OS/2 has been improved. See <code>os2/Changes</code> and README.os2.</p>

<p>Dynamic loading on z/OS (formerly OS/390) has been improved. See README.os390.</p>

<p>Support for VMS has seen many incremental improvements, including better support for operators like backticks and system(), and better %ENV handling. See <code>README.vms</code> and <a href="perlvms.html">perlvms</a>.</p>

<p>Support for Stratus VOS has been improved. See <code>vos/Changes</code> and README.vos.</p>

<p>Support for Windows has been improved.</p>

<ul>

<li><p>fork() emulation has been improved in various ways, but still continues to be experimental. See <a href="perlfork.html">perlfork</a> for known bugs and caveats.</p>

</li>
<li><p>%SIG has been enabled under USE_ITHREADS, but its use is completely unsupported under all configurations.</p>

</li>
<li><p>Borland C++ v5.5 is now a supported compiler that can build Perl. However, the generated binaries continue to be incompatible with those generated by the other supported compilers (GCC and Visual C++).</p>

</li>
<li><p>Non-blocking waits for child processes (or pseudo-processes) are supported via <code>waitpid($pid, &amp;POSIX::WNOHANG)</code>.</p>

</li>
<li><p>A memory leak in accept() has been fixed.</p>

</li>
<li><p>wait(), waitpid() and backticks now return the correct exit status under Windows 9x.</p>

</li>
<li><p>Trailing new %ENV entries weren&#39;t propagated to child processes. This is now fixed.</p>

</li>
<li><p>Current directory entries in %ENV are now correctly propagated to child processes.</p>

</li>
<li><p>Duping socket handles with open(F, &quot;&gt;&amp;MYSOCK&quot;) now works under Windows 9x.</p>

</li>
<li><p>The makefiles now provide a single switch to bulk-enable all the features enabled in ActiveState ActivePerl (a popular binary distribution).</p>

</li>
<li><p>Win32::GetCwd() correctly returns C:\ instead of C: when at the drive root. Other bugs in chdir() and Cwd::cwd() have also been fixed.</p>

</li>
<li><p>fork() correctly returns undef and sets EAGAIN when it runs out of pseudo-process handles.</p>

</li>
<li><p>ExtUtils::MakeMaker now uses $ENV{LIB} to search for libraries.</p>

</li>
<li><p>UNC path handling is better when perl is built to support fork().</p>

</li>
<li><p>A handle leak in socket handling has been fixed.</p>

</li>
<li><p>send() works from within a pseudo-process.</p>

</li>
</ul>

<p>Unless specifically qualified otherwise, the remainder of this document covers changes between the 5.005 and 5.6.0 releases.</p>

<h1 id="Core-Enhancements"><a class="permalink" href="perl561delta.html#Core-Enhancements">#</a><a id="Core2"></a>Core Enhancements</h1>

<h2 id="Interpreter-cloning,-threads,-and-concurrency"><a class="permalink" href="perl561delta.html#Interpreter-cloning,-threads,-and-concurrency">#</a><a id="Interpreter"></a><a id="Interpreter-cloning-threads-and-concurrency"></a>Interpreter cloning, threads, and concurrency</h2>

<p>Perl 5.6.0 introduces the beginnings of support for running multiple interpreters concurrently in different threads. In conjunction with the perl_clone() API call, which can be used to selectively duplicate the state of any given interpreter, it is possible to compile a piece of code once in an interpreter, clone that interpreter one or more times, and run all the resulting interpreters in distinct threads.</p>

<p>On the Windows platform, this feature is used to emulate fork() at the interpreter level. See <a href="perlfork.html">perlfork</a> for details about that.</p>

<p>This feature is still in evolution. It is eventually meant to be used to selectively clone a subroutine and data reachable from that subroutine in a separate interpreter and run the cloned subroutine in a separate thread. Since there is no shared data between the interpreters, little or no locking will be needed (unless parts of the symbol table are explicitly shared). This is obviously intended to be an easy-to-use replacement for the existing threads support.</p>

<p>Support for cloning interpreters and interpreter concurrency can be enabled using the -Dusethreads Configure option (see win32/Makefile for how to enable it on Windows.) The resulting perl executable will be functionally identical to one that was built with -Dmultiplicity, but the perl_clone() API call will only be available in the former.</p>

<p>-Dusethreads enables the cpp macro USE_ITHREADS by default, which in turn enables Perl source code changes that provide a clear separation between the op tree and the data it operates with. The former is immutable, and can therefore be shared between an interpreter and all of its clones, while the latter is considered local to each interpreter, and is therefore copied for each clone.</p>

<p>Note that building Perl with the -Dusemultiplicity Configure option is adequate if you wish to run multiple <b>independent</b> interpreters concurrently in different threads. -Dusethreads only provides the additional functionality of the perl_clone() API call and other support for running <b>cloned</b> interpreters concurrently.</p>

<pre><code class="plaintext">NOTE: This is an experimental feature.  Implementation details are
subject to change.</code></pre>

<h2 id="Lexically-scoped-warning-categories"><a class="permalink" href="perl561delta.html#Lexically-scoped-warning-categories">#</a><a id="Lexically"></a>Lexically scoped warning categories</h2>

<p>You can now control the granularity of warnings emitted by perl at a finer level using the <code>use warnings</code> pragma. <a href="warnings.html">warnings</a> and <a href="perllexwarn.html">perllexwarn</a> have copious documentation on this feature.</p>

<h2 id="Unicode-and-UTF-8-support"><a class="permalink" href="perl561delta.html#Unicode-and-UTF-8-support">#</a><a id="Unicode2"></a>Unicode and UTF-8 support</h2>

<p>Perl now uses UTF-8 as its internal representation for character strings. The <code>utf8</code> and <code>bytes</code> pragmas are used to control this support in the current lexical scope. See <a href="perlunicode.html">perlunicode</a>, <a href="utf8.html">utf8</a> and <a href="bytes.html">bytes</a> for more information.</p>

<p>This feature is expected to evolve quickly to support some form of I/O disciplines that can be used to specify the kind of input and output data (bytes or characters). Until that happens, additional modules from CPAN will be needed to complete the toolkit for dealing with Unicode.</p>

<pre><code class="plaintext">NOTE: This should be considered an experimental feature.  Implementation
details are subject to change.</code></pre>

<h2 id="Support-for-interpolating-named-characters"><a class="permalink" href="perl561delta.html#Support-for-interpolating-named-characters">#</a><a id="Support"></a>Support for interpolating named characters</h2>

<p>The new <code>\N</code> escape interpolates named characters within strings. For example, <code>&quot;Hi! \N{WHITE SMILING FACE}&quot;</code> evaluates to a string with a Unicode smiley face at the end.</p>

<h2 id="&quot;our&quot;-declarations"><a class="permalink" href="perl561delta.html#%22our%22-declarations">#</a><a id="our-declarations"></a>&quot;our&quot; declarations</h2>

<p>An &quot;our&quot; declaration introduces a value that can be best understood as a lexically scoped symbolic alias to a global variable in the package that was current where the variable was declared. This is mostly useful as an alternative to the <code>vars</code> pragma, but also provides the opportunity to introduce typing and other attributes for such variables. See <a href="perlfunc.html#our">&quot;our&quot; in perlfunc</a>.</p>

<h2 id="Support-for-strings-represented-as-a-vector-of-ordinals"><a class="permalink" href="perl561delta.html#Support-for-strings-represented-as-a-vector-of-ordinals">#</a><a id="Support1"></a>Support for strings represented as a vector of ordinals</h2>

<p>Literals of the form <code>v1.2.3.4</code> are now parsed as a string composed of characters with the specified ordinals. This is an alternative, more readable way to construct (possibly Unicode) strings instead of interpolating characters, as in <code>&quot;\x{1}\x{2}\x{3}\x{4}&quot;</code>. The leading <code>v</code> may be omitted if there are more than two ordinals, so <code>1.2.3</code> is parsed the same as <code>v1.2.3</code>.</p>

<p>Strings written in this form are also useful to represent version &quot;numbers&quot;. It is easy to compare such version &quot;numbers&quot; (which are really just plain strings) using any of the usual string comparison operators <code>eq</code>, <code>ne</code>, <code>lt</code>, <code>gt</code>, etc., or perform bitwise string operations on them using <code>|</code>, <code>&amp;</code>, etc.</p>

<p>In conjunction with the new <code>$^V</code> magic variable (which contains the perl version as a string), such literals can be used as a readable way to check if you&#39;re running a particular version of Perl:</p>

<pre><code># this will parse in older versions of Perl also
if ($^V and $^V gt v5.6.0) {
    # new features supported
}</code></pre>

<p><code>require</code> and <code>use</code> also have some special magic to support such literals. They will be interpreted as a version rather than as a module name:</p>

<pre><code>require v5.6.0;		# croak if $^V lt v5.6.0
use v5.6.0;			# same, but croaks at compile-time</code></pre>

<p>Alternatively, the <code>v</code> may be omitted if there is more than one dot:</p>

<pre><code>require 5.6.0;
use 5.6.0;</code></pre>

<p>Also, <code>sprintf</code> and <code>printf</code> support the Perl-specific format flag <code>%v</code> to print ordinals of characters in arbitrary strings:</p>

<pre><code>printf &quot;v%vd&quot;, $^V;		# prints current version, such as &quot;v5.5.650&quot;
printf &quot;%*vX&quot;, &quot;:&quot;, $addr;	# formats IPv6 address
printf &quot;%*vb&quot;, &quot; &quot;, $bits;	# displays bitstring</code></pre>

<p>See <a href="perldata.html#Scalar-value-constructors">&quot;Scalar value constructors&quot; in perldata</a> for additional information.</p>

<h2 id="Improved-Perl-version-numbering-system"><a class="permalink" href="perl561delta.html#Improved-Perl-version-numbering-system">#</a><a id="Improved"></a>Improved Perl version numbering system</h2>

<p>Beginning with Perl version 5.6.0, the version number convention has been changed to a &quot;dotted integer&quot; scheme that is more commonly found in open source projects.</p>

<p>Maintenance versions of v5.6.0 will be released as v5.6.1, v5.6.2 etc. The next development series following v5.6.0 will be numbered v5.7.x, beginning with v5.7.0, and the next major production release following v5.6.0 will be v5.8.0.</p>

<p>The English module now sets $PERL_VERSION to $^V (a string value) rather than <code>$]</code> (a numeric value). (This is a potential incompatibility. Send us a report via perlbug if you are affected by this.)</p>

<p>The v1.2.3 syntax is also now legal in Perl. See <a href="perl561delta.html#Support-for-strings-represented-as-a-vector-of-ordinals">&quot;Support for strings represented as a vector of ordinals&quot;</a> for more on that.</p>

<p>To cope with the new versioning system&#39;s use of at least three significant digits for each version component, the method used for incrementing the subversion number has also changed slightly. We assume that versions older than v5.6.0 have been incrementing the subversion component in multiples of 10. Versions after v5.6.0 will increment them by 1. Thus, using the new notation, 5.005_03 is the &quot;same&quot; as v5.5.30, and the first maintenance version following v5.6.0 will be v5.6.1 (which should be read as being equivalent to a floating point value of 5.006_001 in the older format, stored in <code>$]</code>).</p>

<h2 id="New-syntax-for-declaring-subroutine-attributes"><a class="permalink" href="perl561delta.html#New-syntax-for-declaring-subroutine-attributes">#</a><a id="New"></a>New syntax for declaring subroutine attributes</h2>

<p>Formerly, if you wanted to mark a subroutine as being a method call or as requiring an automatic lock() when it is entered, you had to declare that with a <code>use attrs</code> pragma in the body of the subroutine. That can now be accomplished with declaration syntax, like this:</p>

<pre><code>    sub mymethod : locked method;
    ...
    sub mymethod : locked method {
	...
    }

    sub othermethod :locked :method;
    ...
    sub othermethod :locked :method {
	...
    }</code></pre>

<p>(Note how only the first <code>:</code> is mandatory, and whitespace surrounding the <code>:</code> is optional.)</p>

<p><i>AutoSplit.pm</i> and <i>SelfLoader.pm</i> have been updated to keep the attributes with the stubs they provide. See <a href="attributes.html">attributes</a>.</p>

<h2 id="File-and-directory-handles-can-be-autovivified"><a class="permalink" href="perl561delta.html#File-and-directory-handles-can-be-autovivified">#</a><a id="File3"></a>File and directory handles can be autovivified</h2>

<p>Similar to how constructs such as <code>$x-&gt;[0]</code> autovivify a reference, handle constructors (open(), opendir(), pipe(), socketpair(), sysopen(), socket(), and accept()) now autovivify a file or directory handle if the handle passed to them is an uninitialized scalar variable. This allows the constructs such as <code>open(my $fh, ...)</code> and <code>open(local $fh,...)</code> to be used to create filehandles that will conveniently be closed automatically when the scope ends, provided there are no other references to them. This largely eliminates the need for typeglobs when opening filehandles that must be passed around, as in the following example:</p>

<pre><code>    sub myopen {
        open my $fh, &quot;@_&quot;
	     or die &quot;Can&#39;t open &#39;@_&#39;: $!&quot;;
	return $fh;
    }

    {
        my $f = myopen(&quot;&lt;/etc/motd&quot;);
	print &lt;$f&gt;;
	# $f implicitly closed here
    }</code></pre>

<h2 id="open()-with-more-than-two-arguments"><a class="permalink" href="perl561delta.html#open()-with-more-than-two-arguments">#</a><a id="open"></a><a id="open-with-more-than-two-arguments"></a>open() with more than two arguments</h2>

<p>If open() is passed three arguments instead of two, the second argument is used as the mode and the third argument is taken to be the file name. This is primarily useful for protecting against unintended magic behavior of the traditional two-argument form. See <a href="perlfunc.html#open">&quot;open&quot; in perlfunc</a>.</p>

<h2 id="64-bit-support1"><a class="permalink" href="perl561delta.html#64-bit-support1">#</a><a id="641"></a><a id="bit-support1"></a>64-bit support</h2>

<p>Any platform that has 64-bit integers either</p>

<pre><code class="plaintext">(1) natively as longs or ints
(2) via special compiler flags
(3) using long long or int64_t</code></pre>

<p>is able to use &quot;quads&quot; (64-bit integers) as follows:</p>

<ul>

<li><p>constants (decimal, hexadecimal, octal, binary) in the code</p>

</li>
<li><p>arguments to oct() and hex()</p>

</li>
<li><p>arguments to print(), printf() and sprintf() (flag prefixes ll, L, q)</p>

</li>
<li><p>printed as such</p>

</li>
<li><p>pack() and unpack() &quot;q&quot; and &quot;Q&quot; formats</p>

</li>
<li><p>in basic arithmetics: + - * / % (NOTE: operating close to the limits of the integer values may produce surprising results)</p>

</li>
<li><p>in bit arithmetics: &amp; | ^ ~ &lt;&lt; &gt;&gt; (NOTE: these used to be forced to be 32 bits wide but now operate on the full native width.)</p>

</li>
<li><p>vec()</p>

</li>
</ul>

<p>Note that unless you have the case (a) you will have to configure and compile Perl using the -Duse64bitint Configure flag.</p>

<pre><code class="plaintext">NOTE: The Configure flags -Duselonglong and -Duse64bits have been
deprecated.  Use -Duse64bitint instead.</code></pre>

<p>There are actually two modes of 64-bitness: the first one is achieved using Configure -Duse64bitint and the second one using Configure -Duse64bitall. The difference is that the first one is minimal and the second one maximal. The first works in more places than the second.</p>

<p>The <code>use64bitint</code> does only as much as is required to get 64-bit integers into Perl (this may mean, for example, using &quot;long longs&quot;) while your memory may still be limited to 2 gigabytes (because your pointers could still be 32-bit). Note that the name <code>64bitint</code> does not imply that your C compiler will be using 64-bit <code>int</code>s (it might, but it doesn&#39;t have to): the <code>use64bitint</code> means that you will be able to have 64 bits wide scalar values.</p>

<p>The <code>use64bitall</code> goes all the way by attempting to switch also integers (if it can), longs (and pointers) to being 64-bit. This may create an even more binary incompatible Perl than -Duse64bitint: the resulting executable may not run at all in a 32-bit box, or you may have to reboot/reconfigure/rebuild your operating system to be 64-bit aware.</p>

<p>Natively 64-bit systems like Alpha and Cray need neither -Duse64bitint nor -Duse64bitall.</p>

<p>Last but not least: note that due to Perl&#39;s habit of always using floating point numbers, the quads are still not true integers. When quads overflow their limits (0...18_446_744_073_709_551_615 unsigned, -9_223_372_036_854_775_808...9_223_372_036_854_775_807 signed), they are silently promoted to floating point numbers, after which they will start losing precision (in their lower digits).</p>

<pre><code class="plaintext">NOTE: 64-bit support is still experimental on most platforms.
Existing support only covers the LP64 data model.  In particular, the
LLP64 data model is not yet supported.  64-bit libraries and system
APIs on many platforms have not stabilized--your mileage may vary.</code></pre>

<h2 id="Large-file-support"><a class="permalink" href="perl561delta.html#Large-file-support">#</a><a id="Large"></a>Large file support</h2>

<p>If you have filesystems that support &quot;large files&quot; (files larger than 2 gigabytes), you may now also be able to create and access them from Perl.</p>

<pre><code class="plaintext">NOTE: The default action is to enable large file support, if
available on the platform.</code></pre>

<p>If the large file support is on, and you have a Fcntl constant O_LARGEFILE, the O_LARGEFILE is automatically added to the flags of sysopen().</p>

<p>Beware that unless your filesystem also supports &quot;sparse files&quot; seeking to umpteen petabytes may be inadvisable.</p>

<p>Note that in addition to requiring a proper file system to do large files you may also need to adjust your per-process (or your per-system, or per-process-group, or per-user-group) maximum filesize limits before running Perl scripts that try to handle large files, especially if you intend to write such files.</p>

<p>Finally, in addition to your process/process group maximum filesize limits, you may have quota limits on your filesystems that stop you (your user id or your user group id) from using large files.</p>

<p>Adjusting your process/user/group/file system/operating system limits is outside the scope of Perl core language. For process limits, you may try increasing the limits using your shell&#39;s limits/limit/ulimit command before running Perl. The BSD::Resource extension (not included with the standard Perl distribution) may also be of use, it offers the getrlimit/setrlimit interface that can be used to adjust process resource usage limits, including the maximum filesize limit.</p>

<h2 id="Long-doubles"><a class="permalink" href="perl561delta.html#Long-doubles">#</a><a id="Long"></a>Long doubles</h2>

<p>In some systems you may be able to use long doubles to enhance the range and precision of your double precision floating point numbers (that is, Perl&#39;s numbers). Use Configure -Duselongdouble to enable this support (if it is available).</p>

<h2 id="&quot;more-bits&quot;"><a class="permalink" href="perl561delta.html#%22more-bits%22">#</a><a id="more-bits"></a>&quot;more bits&quot;</h2>

<p>You can &quot;Configure -Dusemorebits&quot; to turn on both the 64-bit support and the long double support.</p>

<h2 id="Enhanced-support-for-sort()-subroutines"><a class="permalink" href="perl561delta.html#Enhanced-support-for-sort()-subroutines">#</a><a id="Enhanced"></a><a id="Enhanced-support-for-sort-subroutines"></a>Enhanced support for sort() subroutines</h2>

<p>Perl subroutines with a prototype of <code>($$)</code>, and XSUBs in general, can now be used as sort subroutines. In either case, the two elements to be compared are passed as normal parameters in @_. See <a href="perlfunc.html#sort">&quot;sort&quot; in perlfunc</a>.</p>

<p>For unprototyped sort subroutines, the historical behavior of passing the elements to be compared as the global variables $a and $b remains unchanged.</p>

<h2 id="sort-$coderef-@foo-allowed"><a class="permalink" href="perl561delta.html#sort-$coderef-@foo-allowed">#</a><a id="sort1"></a><a id="sort-coderef-foo-allowed"></a><code>sort $coderef @foo</code> allowed</h2>

<p>sort() did not accept a subroutine reference as the comparison function in earlier versions. This is now permitted.</p>

<h2 id="File-globbing-implemented-internally"><a class="permalink" href="perl561delta.html#File-globbing-implemented-internally">#</a><a id="File4"></a>File globbing implemented internally</h2>

<p>Perl now uses the File::Glob implementation of the glob() operator automatically. This avoids using an external csh process and the problems associated with it.</p>

<pre><code class="plaintext">NOTE: This is currently an experimental feature.  Interfaces and
implementation are subject to change.</code></pre>

<h2 id="Support-for-CHECK-blocks"><a class="permalink" href="perl561delta.html#Support-for-CHECK-blocks">#</a><a id="Support2"></a>Support for CHECK blocks</h2>

<p>In addition to <code>BEGIN</code>, <code>INIT</code>, <code>END</code>, <code>DESTROY</code> and <code>AUTOLOAD</code>, subroutines named <code>CHECK</code> are now special. These are queued up during compilation and behave similar to END blocks, except they are called at the end of compilation rather than at the end of execution. They cannot be called directly.</p>

<h2 id="POSIX-character-class-syntax-[:-:]-supported"><a class="permalink" href="perl561delta.html#POSIX-character-class-syntax-%5B:-:%5D-supported">#</a><a id="POSIX"></a><a id="POSIX-character-class-syntax-:-:-supported"></a>POSIX character class syntax [: :] supported</h2>

<p>For example to match alphabetic characters use /[[:alpha:]]/. See <a href="perlre.html">perlre</a> for details.</p>

<h2 id="Better-pseudo-random-number-generator"><a class="permalink" href="perl561delta.html#Better-pseudo-random-number-generator">#</a><a id="Better"></a>Better pseudo-random number generator</h2>

<p>In 5.005_0x and earlier, perl&#39;s rand() function used the C library rand(3) function. As of 5.005_52, Configure tests for drand48(), random(), and rand() (in that order) and picks the first one it finds.</p>

<p>These changes should result in better random numbers from rand().</p>

<h2 id="Improved-qw//-operator"><a class="permalink" href="perl561delta.html#Improved-qw//-operator">#</a><a id="Improved1"></a><a id="Improved-qw-operator"></a>Improved <code>qw//</code> operator</h2>

<p>The <code>qw//</code> operator is now evaluated at compile time into a true list instead of being replaced with a run time call to <code>split()</code>. This removes the confusing misbehaviour of <code>qw//</code> in scalar context, which had inherited that behaviour from split().</p>

<p>Thus:</p>

<pre><code>$foo = ($bar) = qw(a b c); print &quot;$foo|$bar\n&quot;;</code></pre>

<p>now correctly prints &quot;3|a&quot;, instead of &quot;2|a&quot;.</p>

<h2 id="Better-worst-case-behavior-of-hashes"><a class="permalink" href="perl561delta.html#Better-worst-case-behavior-of-hashes">#</a><a id="Better1"></a>Better worst-case behavior of hashes</h2>

<p>Small changes in the hashing algorithm have been implemented in order to improve the distribution of lower order bits in the hashed value. This is expected to yield better performance on keys that are repeated sequences.</p>

<h2 id="pack()-format-&#39;Z&#39;-supported"><a class="permalink" href="perl561delta.html#pack()-format-&#39;Z&#39;-supported">#</a><a id="pack"></a><a id="pack-format-Z-supported"></a>pack() format &#39;Z&#39; supported</h2>

<p>The new format type &#39;Z&#39; is useful for packing and unpacking null-terminated strings. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

<h2 id="pack()-format-modifier-&#39;!&#39;-supported"><a class="permalink" href="perl561delta.html#pack()-format-modifier-&#39;!&#39;-supported">#</a><a id="pack1"></a><a id="pack-format-modifier-supported"></a>pack() format modifier &#39;!&#39; supported</h2>

<p>The new format type modifier &#39;!&#39; is useful for packing and unpacking native shorts, ints, and longs. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

<h2 id="pack()-and-unpack()-support-counted-strings"><a class="permalink" href="perl561delta.html#pack()-and-unpack()-support-counted-strings">#</a><a id="pack2"></a><a id="pack-and-unpack-support-counted-strings"></a>pack() and unpack() support counted strings</h2>

<p>The template character &#39;/&#39; can be used to specify a counted string type to be packed or unpacked. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

<h2 id="Comments-in-pack()-templates"><a class="permalink" href="perl561delta.html#Comments-in-pack()-templates">#</a><a id="Comments"></a><a id="Comments-in-pack-templates"></a>Comments in pack() templates</h2>

<p>The &#39;#&#39; character in a template introduces a comment up to end of the line. This facilitates documentation of pack() templates.</p>

<h2 id="Weak-references"><a class="permalink" href="perl561delta.html#Weak-references">#</a><a id="Weak"></a>Weak references</h2>

<p>In previous versions of Perl, you couldn&#39;t cache objects so as to allow them to be deleted if the last reference from outside the cache is deleted. The reference in the cache would hold a reference count on the object and the objects would never be destroyed.</p>

<p>Another familiar problem is with circular references. When an object references itself, its reference count would never go down to zero, and it would not get destroyed until the program is about to exit.</p>

<p>Weak references solve this by allowing you to &quot;weaken&quot; any reference, that is, make it not count towards the reference count. When the last non-weak reference to an object is deleted, the object is destroyed and all the weak references to the object are automatically undef-ed.</p>

<p>To use this feature, you need the Devel::WeakRef package from CPAN, which contains additional documentation.</p>

<pre><code class="plaintext">NOTE: This is an experimental feature.  Details are subject to change.  </code></pre>

<h2 id="Binary-numbers-supported"><a class="permalink" href="perl561delta.html#Binary-numbers-supported">#</a><a id="Binary"></a>Binary numbers supported</h2>

<p>Binary numbers are now supported as literals, in s?printf formats, and <code>oct()</code>:</p>

<pre><code>$answer = 0b101010;
printf &quot;The answer is: %b\n&quot;, oct(&quot;0b101010&quot;);</code></pre>

<h2 id="Lvalue-subroutines1"><a class="permalink" href="perl561delta.html#Lvalue-subroutines1">#</a><a id="Lvalue1"></a>Lvalue subroutines</h2>

<p>Subroutines can now return modifiable lvalues. See <a href="perlsub.html#Lvalue-subroutines">&quot;Lvalue subroutines&quot; in perlsub</a>.</p>

<pre><code class="plaintext">NOTE: This is an experimental feature.  Details are subject to change.</code></pre>

<h2 id="Some-arrows-may-be-omitted-in-calls-through-references"><a class="permalink" href="perl561delta.html#Some-arrows-may-be-omitted-in-calls-through-references">#</a><a id="Some"></a>Some arrows may be omitted in calls through references</h2>

<p>Perl now allows the arrow to be omitted in many constructs involving subroutine calls through references. For example, <code>$foo[10]-&gt;(&#39;foo&#39;)</code> may now be written <code>$foo[10](&#39;foo&#39;)</code>. This is rather similar to how the arrow may be omitted from <code>$foo[10]-&gt;{&#39;foo&#39;}</code>. Note however, that the arrow is still required for <code>foo(10)-&gt;(&#39;bar&#39;)</code>.</p>

<h2 id="Boolean-assignment-operators-are-legal-lvalues"><a class="permalink" href="perl561delta.html#Boolean-assignment-operators-are-legal-lvalues">#</a><a id="Boolean"></a>Boolean assignment operators are legal lvalues</h2>

<p>Constructs such as <code>($a ||= 2) += 1</code> are now allowed.</p>

<h2 id="exists()-is-supported-on-subroutine-names"><a class="permalink" href="perl561delta.html#exists()-is-supported-on-subroutine-names">#</a><a id="exists"></a><a id="exists-is-supported-on-subroutine-names"></a>exists() is supported on subroutine names</h2>

<p>The exists() builtin now works on subroutine names. A subroutine is considered to exist if it has been declared (even if implicitly). See <a href="perlfunc.html#exists">&quot;exists&quot; in perlfunc</a> for examples.</p>

<h2 id="exists()-and-delete()-are-supported-on-array-elements"><a class="permalink" href="perl561delta.html#exists()-and-delete()-are-supported-on-array-elements">#</a><a id="exists1"></a><a id="exists-and-delete-are-supported-on-array-elements"></a>exists() and delete() are supported on array elements</h2>

<p>The exists() and delete() builtins now work on simple arrays as well. The behavior is similar to that on hash elements.</p>

<p>exists() can be used to check whether an array element has been initialized. This avoids autovivifying array elements that don&#39;t exist. If the array is tied, the EXISTS() method in the corresponding tied package will be invoked.</p>

<p>delete() may be used to remove an element from the array and return it. The array element at that position returns to its uninitialized state, so that testing for the same element with exists() will return false. If the element happens to be the one at the end, the size of the array also shrinks up to the highest element that tests true for exists(), or 0 if none such is found. If the array is tied, the DELETE() method in the corresponding tied package will be invoked.</p>

<p>See <a href="perlfunc.html#exists">&quot;exists&quot; in perlfunc</a> and <a href="perlfunc.html#delete">&quot;delete&quot; in perlfunc</a> for examples.</p>

<h2 id="Pseudo-hashes-work-better"><a class="permalink" href="perl561delta.html#Pseudo-hashes-work-better">#</a><a id="Pseudo"></a>Pseudo-hashes work better</h2>

<p>Dereferencing some types of reference values in a pseudo-hash, such as <code>$ph-&gt;{foo}[1]</code>, was accidentally disallowed. This has been corrected.</p>

<p>When applied to a pseudo-hash element, exists() now reports whether the specified value exists, not merely if the key is valid.</p>

<p>delete() now works on pseudo-hashes. When given a pseudo-hash element or slice it deletes the values corresponding to the keys (but not the keys themselves). See <a href="perlref.html#Pseudo-hashes%3A-Using-an-array-as-a-hash">&quot;Pseudo-hashes: Using an array as a hash&quot; in perlref</a>.</p>

<p>Pseudo-hash slices with constant keys are now optimized to array lookups at compile-time.</p>

<p>List assignments to pseudo-hash slices are now supported.</p>

<p>The <code>fields</code> pragma now provides ways to create pseudo-hashes, via fields::new() and fields::phash(). See <a href="fields.html">fields</a>.</p>

<pre><code class="plaintext">NOTE: The pseudo-hash data type continues to be experimental.
Limiting oneself to the interface elements provided by the
fields pragma will provide protection from any future changes.</code></pre>

<h2 id="Automatic-flushing-of-output-buffers"><a class="permalink" href="perl561delta.html#Automatic-flushing-of-output-buffers">#</a><a id="Automatic"></a>Automatic flushing of output buffers</h2>

<p>fork(), exec(), system(), qx//, and pipe open()s now flush buffers of all files opened for output when the operation was attempted. This mostly eliminates confusing buffering mishaps suffered by users unaware of how Perl internally handles I/O.</p>

<p>This is not supported on some platforms like Solaris where a suitably correct implementation of fflush(NULL) isn&#39;t available.</p>

<h2 id="Better-diagnostics-on-meaningless-filehandle-operations"><a class="permalink" href="perl561delta.html#Better-diagnostics-on-meaningless-filehandle-operations">#</a><a id="Better2"></a>Better diagnostics on meaningless filehandle operations</h2>

<p>Constructs such as <code>open(&lt;FH&gt;)</code> and <code>close(&lt;FH&gt;)</code> are compile time errors. Attempting to read from filehandles that were opened only for writing will now produce warnings (just as writing to read-only filehandles does).</p>

<h2 id="Where-possible,-buffered-data-discarded-from-duped-input-filehandle"><a class="permalink" href="perl561delta.html#Where-possible,-buffered-data-discarded-from-duped-input-filehandle">#</a><a id="Where"></a><a id="Where-possible-buffered-data-discarded-from-duped-input-filehandle"></a>Where possible, buffered data discarded from duped input filehandle</h2>

<p><code>open(NEW, &quot;&lt;&amp;OLD&quot;)</code> now attempts to discard any data that was previously read and buffered in <code>OLD</code> before duping the handle. On platforms where doing this is allowed, the next read operation on <code>NEW</code> will return the same data as the corresponding operation on <code>OLD</code>. Formerly, it would have returned the data from the start of the following disk block instead.</p>

<h2 id="eof()-has-the-same-old-magic-as-&lt;&gt;"><a class="permalink" href="perl561delta.html#eof()-has-the-same-old-magic-as-%3C%3E">#</a><a id="eof"></a><a id="eof-has-the-same-old-magic-as"></a>eof() has the same old magic as &lt;&gt;</h2>

<p><code>eof()</code> would return true if no attempt to read from <code>&lt;&gt;</code> had yet been made. <code>eof()</code> has been changed to have a little magic of its own, it now opens the <code>&lt;&gt;</code> files.</p>

<h2 id="binmode()-can-be-used-to-set-:crlf-and-:raw-modes"><a class="permalink" href="perl561delta.html#binmode()-can-be-used-to-set-:crlf-and-:raw-modes">#</a><a id="binmode"></a><a id="binmode-can-be-used-to-set-:crlf-and-:raw-modes"></a>binmode() can be used to set :crlf and :raw modes</h2>

<p>binmode() now accepts a second argument that specifies a discipline for the handle in question. The two pseudo-disciplines &quot;:raw&quot; and &quot;:crlf&quot; are currently supported on DOS-derivative platforms. See <a href="perlfunc.html#binmode">&quot;binmode&quot; in perlfunc</a> and <a href="open.html">open</a>.</p>

<h2 id="-T-filetest-recognizes-UTF-8-encoded-files-as-&quot;text&quot;"><a class="permalink" href="perl561delta.html#-T-filetest-recognizes-UTF-8-encoded-files-as-%22text%22">#</a><a id="T-filetest-recognizes-UTF-8-encoded-files-as-text"></a><code>-T</code> filetest recognizes UTF-8 encoded files as &quot;text&quot;</h2>

<p>The algorithm used for the <code>-T</code> filetest has been enhanced to correctly identify UTF-8 content as &quot;text&quot;.</p>

<h2 id="system(),-backticks-and-pipe-open-now-reflect-exec()-failure"><a class="permalink" href="perl561delta.html#system(),-backticks-and-pipe-open-now-reflect-exec()-failure">#</a><a id="system"></a><a id="system-backticks-and-pipe-open-now-reflect-exec-failure"></a>system(), backticks and pipe open now reflect exec() failure</h2>

<p>On Unix and similar platforms, system(), qx() and open(FOO, &quot;cmd |&quot;) etc., are implemented via fork() and exec(). When the underlying exec() fails, earlier versions did not report the error properly, since the exec() happened to be in a different process.</p>

<p>The child process now communicates with the parent about the error in launching the external command, which allows these constructs to return with their usual error value and set $!.</p>

<h2 id="Improved-diagnostics"><a class="permalink" href="perl561delta.html#Improved-diagnostics">#</a><a id="Improved2"></a>Improved diagnostics</h2>

<p>Line numbers are no longer suppressed (under most likely circumstances) during the global destruction phase.</p>

<p>Diagnostics emitted from code running in threads other than the main thread are now accompanied by the thread ID.</p>

<p>Embedded null characters in diagnostics now actually show up. They used to truncate the message in prior versions.</p>

<p>$foo::a and $foo::b are now exempt from &quot;possible typo&quot; warnings only if sort() is encountered in package <code>foo</code>.</p>

<p>Unrecognized alphabetic escapes encountered when parsing quote constructs now generate a warning, since they may take on new semantics in later versions of Perl.</p>

<p>Many diagnostics now report the internal operation in which the warning was provoked, like so:</p>

<pre><code class="plaintext">Use of uninitialized value in concatenation (.) at (eval 1) line 1.
Use of uninitialized value in print at (eval 1) line 1.</code></pre>

<p>Diagnostics that occur within eval may also report the file and line number where the eval is located, in addition to the eval sequence number and the line number within the evaluated text itself. For example:</p>

<pre><code class="plaintext">Not enough arguments for scalar at (eval 4)[newlib/perl5db.pl:1411] line 2, at EOF</code></pre>

<h2 id="Diagnostics-follow-STDERR"><a class="permalink" href="perl561delta.html#Diagnostics-follow-STDERR">#</a><a id="Diagnostics"></a>Diagnostics follow STDERR</h2>

<p>Diagnostic output now goes to whichever file the <code>STDERR</code> handle is pointing at, instead of always going to the underlying C runtime library&#39;s <code>stderr</code>.</p>

<h2 id="More-consistent-close-on-exec-behavior"><a class="permalink" href="perl561delta.html#More-consistent-close-on-exec-behavior">#</a><a id="More"></a>More consistent close-on-exec behavior</h2>

<p>On systems that support a close-on-exec flag on filehandles, the flag is now set for any handles created by pipe(), socketpair(), socket(), and accept(), if that is warranted by the value of $^F that may be in effect. Earlier versions neglected to set the flag for handles created with these operators. See <a href="perlfunc.html#pipe">&quot;pipe&quot; in perlfunc</a>, <a href="perlfunc.html#socketpair">&quot;socketpair&quot; in perlfunc</a>, <a href="perlfunc.html#socket">&quot;socket&quot; in perlfunc</a>, <a href="perlfunc.html#accept">&quot;accept&quot; in perlfunc</a>, and <a href="perlvar.html#%24%5EF">&quot;$^F&quot; in perlvar</a>.</p>

<h2 id="syswrite()-ease-of-use"><a class="permalink" href="perl561delta.html#syswrite()-ease-of-use">#</a><a id="syswrite"></a><a id="syswrite-ease-of-use"></a>syswrite() ease-of-use</h2>

<p>The length argument of <code>syswrite()</code> has become optional.</p>

<h2 id="Better-syntax-checks-on-parenthesized-unary-operators"><a class="permalink" href="perl561delta.html#Better-syntax-checks-on-parenthesized-unary-operators">#</a><a id="Better3"></a>Better syntax checks on parenthesized unary operators</h2>

<p>Expressions such as:</p>

<pre><code>print defined(&amp;foo,&amp;bar,&amp;baz);
print uc(&quot;foo&quot;,&quot;bar&quot;,&quot;baz&quot;);
undef($foo,&amp;bar);</code></pre>

<p>used to be accidentally allowed in earlier versions, and produced unpredictable behaviour. Some produced ancillary warnings when used in this way; others silently did the wrong thing.</p>

<p>The parenthesized forms of most unary operators that expect a single argument now ensure that they are not called with more than one argument, making the cases shown above syntax errors. The usual behaviour of:</p>

<pre><code>print defined &amp;foo, &amp;bar, &amp;baz;
print uc &quot;foo&quot;, &quot;bar&quot;, &quot;baz&quot;;
undef $foo, &amp;bar;</code></pre>

<p>remains unchanged. See <a href="perlop.html">perlop</a>.</p>

<h2 id="Bit-operators-support-full-native-integer-width"><a class="permalink" href="perl561delta.html#Bit-operators-support-full-native-integer-width">#</a><a id="Bit"></a>Bit operators support full native integer width</h2>

<p>The bit operators (&amp; | ^ ~ &lt;&lt; &gt;&gt;) now operate on the full native integral width (the exact size of which is available in $Config{ivsize}). For example, if your platform is either natively 64-bit or if Perl has been configured to use 64-bit integers, these operations apply to 8 bytes (as opposed to 4 bytes on 32-bit platforms). For portability, be sure to mask off the excess bits in the result of unary <code>~</code>, e.g., <code>~$x &amp; 0xffffffff</code>.</p>

<h2 id="Improved-security-features"><a class="permalink" href="perl561delta.html#Improved-security-features">#</a><a id="Improved3"></a>Improved security features</h2>

<p>More potentially unsafe operations taint their results for improved security.</p>

<p>The <code>passwd</code> and <code>shell</code> fields returned by the getpwent(), getpwnam(), and getpwuid() are now tainted, because the user can affect their own encrypted password and login shell.</p>

<p>The variable modified by shmread(), and messages returned by msgrcv() (and its object-oriented interface IPC::SysV::Msg::rcv) are also tainted, because other untrusted processes can modify messages and shared memory segments for their own nefarious purposes.</p>

<h2 id="More-functional-bareword-prototype-(*)"><a class="permalink" href="perl561delta.html#More-functional-bareword-prototype-(*)">#</a><a id="More1"></a><a id="More-functional-bareword-prototype"></a>More functional bareword prototype (*)</h2>

<p>Bareword prototypes have been rationalized to enable them to be used to override builtins that accept barewords and interpret them in a special way, such as <code>require</code> or <code>do</code>.</p>

<p>Arguments prototyped as <code>*</code> will now be visible within the subroutine as either a simple scalar or as a reference to a typeglob. See <a href="perlsub.html#Prototypes">&quot;Prototypes&quot; in perlsub</a>.</p>

<h2 id="require-and-do-may-be-overridden"><a class="permalink" href="perl561delta.html#require-and-do-may-be-overridden">#</a><a id="require"></a><code>require</code> and <code>do</code> may be overridden</h2>

<p><code>require</code> and <code>do &#39;file&#39;</code> operations may be overridden locally by importing subroutines of the same name into the current package (or globally by importing them into the CORE::GLOBAL:: namespace). Overriding <code>require</code> will also affect <code>use</code>, provided the override is visible at compile-time. See <a href="perlsub.html#Overriding-Built-in-Functions">&quot;Overriding Built-in Functions&quot; in perlsub</a>.</p>

<h2 id="$^X-variables-may-now-have-names-longer-than-one-character"><a class="permalink" href="perl561delta.html#$%5EX-variables-may-now-have-names-longer-than-one-character">#</a><a id="X-variables-may-now-have-names-longer-than-one-character"></a>$^X variables may now have names longer than one character</h2>

<p>Formerly, $^X was synonymous with ${&quot;\cX&quot;}, but $^XY was a syntax error. Now variable names that begin with a control character may be arbitrarily long. However, for compatibility reasons, these variables <i>must</i> be written with explicit braces, as <code>${^XY}</code> for example. <code>${^XYZ}</code> is synonymous with ${&quot;\cXYZ&quot;}. Variable names with more than one control character, such as <code>${^XY^Z}</code>, are illegal.</p>

<p>The old syntax has not changed. As before, `^X&#39; may be either a literal control-X character or the two-character sequence `caret&#39; plus `X&#39;. When braces are omitted, the variable name stops after the control character. Thus <code>&quot;$^XYZ&quot;</code> continues to be synonymous with <code>$^X . &quot;YZ&quot;</code> as before.</p>

<p>As before, lexical variables may not have names beginning with control characters. As before, variables whose names begin with a control character are always forced to be in package `main&#39;. All such variables are reserved for future extensions, except those that begin with <code>^_</code>, which may be used by user programs and are guaranteed not to acquire special meaning in any future version of Perl.</p>

<h2 id="New-variable-$^C-reflects-c-switch"><a class="permalink" href="perl561delta.html#New-variable-$%5EC-reflects-c-switch">#</a><a id="New1"></a><a id="New-variable-C-reflects--c-switch"></a>New variable $^C reflects <code>-c</code> switch</h2>

<p><code>$^C</code> has a boolean value that reflects whether perl is being run in compile-only mode (i.e. via the <code>-c</code> switch). Since BEGIN blocks are executed under such conditions, this variable enables perl code to determine whether actions that make sense only during normal running are warranted. See <a href="perlvar.html">perlvar</a>.</p>

<h2 id="New-variable-$^V-contains-Perl-version-as-a-string"><a class="permalink" href="perl561delta.html#New-variable-$%5EV-contains-Perl-version-as-a-string">#</a><a id="New2"></a><a id="New-variable-V-contains-Perl-version-as-a-string"></a>New variable $^V contains Perl version as a string</h2>

<p><code>$^V</code> contains the Perl version number as a string composed of characters whose ordinals match the version numbers, i.e. v5.6.0. This may be used in string comparisons.</p>

<p>See <code>Support for strings represented as a vector of ordinals</code> for an example.</p>

<h2 id="Optional-Y2K-warnings"><a class="permalink" href="perl561delta.html#Optional-Y2K-warnings">#</a><a id="Optional"></a>Optional Y2K warnings</h2>

<p>If Perl is built with the cpp macro <code>PERL_Y2KWARN</code> defined, it emits optional warnings when concatenating the number 19 with another number.</p>

<p>This behavior must be specifically enabled when running Configure. See <i>INSTALL</i> and <i>README.Y2K</i>.</p>

<h2 id="Arrays-now-always-interpolate-into-double-quoted-strings"><a class="permalink" href="perl561delta.html#Arrays-now-always-interpolate-into-double-quoted-strings">#</a><a id="Arrays"></a>Arrays now always interpolate into double-quoted strings</h2>

<p>In double-quoted strings, arrays now interpolate, no matter what. The behavior in earlier versions of perl 5 was that arrays would interpolate into strings if the array had been mentioned before the string was compiled, and otherwise Perl would raise a fatal compile-time error. In versions 5.000 through 5.003, the error was</p>

<pre><code>Literal @example now requires backslash</code></pre>

<p>In versions 5.004_01 through 5.6.0, the error was</p>

<pre><code>In string, @example now must be written as \@example</code></pre>

<p>The idea here was to get people into the habit of writing <code>&quot;fred\@example.com&quot;</code> when they wanted a literal <code>@</code> sign, just as they have always written <code>&quot;Give me back my \$5&quot;</code> when they wanted a literal <code>$</code> sign.</p>

<p>Starting with 5.6.1, when Perl now sees an <code>@</code> sign in a double-quoted string, it <i>always</i> attempts to interpolate an array, regardless of whether or not the array has been used or declared already. The fatal error has been downgraded to an optional warning:</p>

<pre><code>Possible unintended interpolation of @example in string</code></pre>

<p>This warns you that <code>&quot;fred@example.com&quot;</code> is going to turn into <code>fred.com</code> if you don&#39;t backslash the <code>@</code>. See http://perl.plover.com/at-error.html for more details about the history here.</p>

<h2 id="@-and-@+-provide-starting/ending-offsets-of-regex-submatches"><a class="permalink" href="perl561delta.html#@-and-@+-provide-starting/ending-offsets-of-regex-submatches">#</a><a id="and-provide-starting-ending-offsets-of-regex-submatches"></a>@- and @+ provide starting/ending offsets of regex submatches</h2>

<p>The new magic variables @- and @+ provide the starting and ending offsets, respectively, of $&amp;, $1, $2, etc. See <a href="perlvar.html">perlvar</a> for details.</p>

<h1 id="Modules-and-Pragmata"><a class="permalink" href="perl561delta.html#Modules-and-Pragmata">#</a><a id="Modules1"></a>Modules and Pragmata</h1>

<h2 id="Modules"><a class="permalink" href="perl561delta.html#Modules">#</a>Modules</h2>

<dl>

<dt id="attributes"><a class="permalink" href="perl561delta.html#attributes">#</a>attributes</dt>
<dd>

<p>While used internally by Perl as a pragma, this module also provides a way to fetch subroutine and variable attributes. See <a href="attributes.html">attributes</a>.</p>

</dd>
<dt id="B"><a class="permalink" href="perl561delta.html#B">#</a>B</dt>
<dd>

<p>The Perl Compiler suite has been extensively reworked for this release. More of the standard Perl test suite passes when run under the Compiler, but there is still a significant way to go to achieve production quality compiled executables.</p>

<pre><code class="plaintext">NOTE: The Compiler suite remains highly experimental.  The
generated code may not be correct, even when it manages to execute
without errors.</code></pre>

</dd>
<dt id="Benchmark"><a class="permalink" href="perl561delta.html#Benchmark">#</a>Benchmark</dt>
<dd>

<p>Overall, Benchmark results exhibit lower average error and better timing accuracy.</p>

<p>You can now run tests for <i>n</i> seconds instead of guessing the right number of tests to run: e.g., timethese(-5, ...) will run each code for at least 5 CPU seconds. Zero as the &quot;number of repetitions&quot; means &quot;for at least 3 CPU seconds&quot;. The output format has also changed. For example:</p>

<pre><code>use Benchmark;$x=3;timethese(-5,{a=&gt;sub{$x*$x},b=&gt;sub{$x**2}})</code></pre>

<p>will now output something like this:</p>

<pre><code class="plaintext">Benchmark: running a, b, each for at least 5 CPU seconds...
         a:  5 wallclock secs ( 5.77 usr +  0.00 sys =  5.77 CPU) @ 200551.91/s (n=1156516)
         b:  4 wallclock secs ( 5.00 usr +  0.02 sys =  5.02 CPU) @ 159605.18/s (n=800686)</code></pre>

<p>New features: &quot;each for at least N CPU seconds...&quot;, &quot;wallclock secs&quot;, and the &quot;@ operations/CPU second (n=operations)&quot;.</p>

<p>timethese() now returns a reference to a hash of Benchmark objects containing the test results, keyed on the names of the tests.</p>

<p>timethis() now returns the iterations field in the Benchmark result object instead of 0.</p>

<p>timethese(), timethis(), and the new cmpthese() (see below) can also take a format specifier of &#39;none&#39; to suppress output.</p>

<p>A new function countit() is just like timeit() except that it takes a TIME instead of a COUNT.</p>

<p>A new function cmpthese() prints a chart comparing the results of each test returned from a timethese() call. For each possible pair of tests, the percentage speed difference (iters/sec or seconds/iter) is shown.</p>

<p>For other details, see <a href="Benchmark.html">Benchmark</a>.</p>

</dd>
<dt id="ByteLoader"><a class="permalink" href="perl561delta.html#ByteLoader">#</a>ByteLoader</dt>
<dd>

<p>The ByteLoader is a dedicated extension to generate and run Perl bytecode. See <a href="ByteLoader.html">ByteLoader</a>.</p>

</dd>
<dt id="constant"><a class="permalink" href="perl561delta.html#constant">#</a>constant</dt>
<dd>

<p>References can now be used.</p>

<p>The new version also allows a leading underscore in constant names, but disallows a double leading underscore (as in &quot;__LINE__&quot;). Some other names are disallowed or warned against, including BEGIN, END, etc. Some names which were forced into main:: used to fail silently in some cases; now they&#39;re fatal (outside of main::) and an optional warning (inside of main::). The ability to detect whether a constant had been set with a given name has been added.</p>

<p>See <a href="constant.html">constant</a>.</p>

</dd>
<dt id="charnames"><a class="permalink" href="perl561delta.html#charnames">#</a>charnames</dt>
<dd>

<p>This pragma implements the <code>\N</code> string escape. See <a href="charnames.html">charnames</a>.</p>

</dd>
<dt id="Data::Dumper"><a class="permalink" href="perl561delta.html#Data::Dumper">#</a><a id="Data"></a>Data::Dumper</dt>
<dd>

<p>A <code>Maxdepth</code> setting can be specified to avoid venturing too deeply into deep data structures. See <a href="./Data::Dumper.html">Data::Dumper</a>.</p>

<p>The XSUB implementation of Dump() is now automatically called if the <code>Useqq</code> setting is not in use.</p>

<p>Dumping <code>qr//</code> objects works correctly.</p>

</dd>
<dt id="DB"><a class="permalink" href="perl561delta.html#DB">#</a>DB</dt>
<dd>

<p><code>DB</code> is an experimental module that exposes a clean abstraction to Perl&#39;s debugging API.</p>

</dd>
<dt id="DB_File1"><a class="permalink" href="perl561delta.html#DB_File1">#</a>DB_File</dt>
<dd>

<p>DB_File can now be built with Berkeley DB versions 1, 2 or 3. See <code>ext/DB_File/Changes</code>.</p>

</dd>
<dt id="Devel::DProf"><a class="permalink" href="perl561delta.html#Devel::DProf">#</a><a id="Devel1"></a>Devel::DProf</dt>
<dd>

<p>Devel::DProf, a Perl source code profiler has been added. See <a href="./Devel::DProf.html">Devel::DProf</a> and <a href="dprofpp.html">dprofpp</a>.</p>

</dd>
<dt id="Devel::Peek1"><a class="permalink" href="perl561delta.html#Devel::Peek1">#</a><a id="Devel2"></a>Devel::Peek</dt>
<dd>

<p>The Devel::Peek module provides access to the internal representation of Perl variables and data. It is a data debugging tool for the XS programmer.</p>

</dd>
<dt id="Dumpvalue"><a class="permalink" href="perl561delta.html#Dumpvalue">#</a>Dumpvalue</dt>
<dd>

<p>The Dumpvalue module provides screen dumps of Perl data.</p>

</dd>
<dt id="DynaLoader"><a class="permalink" href="perl561delta.html#DynaLoader">#</a>DynaLoader</dt>
<dd>

<p>DynaLoader now supports a dl_unload_file() function on platforms that support unloading shared objects using dlclose().</p>

<p>Perl can also optionally arrange to unload all extension shared objects loaded by Perl. To enable this, build Perl with the Configure option <code>-Accflags=-DDL_UNLOAD_ALL_AT_EXIT</code>. (This maybe useful if you are using Apache with mod_perl.)</p>

</dd>
<dt id="English"><a class="permalink" href="perl561delta.html#English">#</a>English</dt>
<dd>

<p>$PERL_VERSION now stands for <code>$^V</code> (a string value) rather than for <code>$]</code> (a numeric value).</p>

</dd>
<dt id="Env"><a class="permalink" href="perl561delta.html#Env">#</a>Env</dt>
<dd>

<p>Env now supports accessing environment variables like PATH as array variables.</p>

</dd>
<dt id="Fcntl"><a class="permalink" href="perl561delta.html#Fcntl">#</a>Fcntl</dt>
<dd>

<p>More Fcntl constants added: F_SETLK64, F_SETLKW64, O_LARGEFILE for large file (more than 4GB) access (NOTE: the O_LARGEFILE is automatically added to sysopen() flags if large file support has been configured, as is the default), Free/Net/OpenBSD locking behaviour flags F_FLOCK, F_POSIX, Linux F_SHLCK, and O_ACCMODE: the combined mask of O_RDONLY, O_WRONLY, and O_RDWR. The seek()/sysseek() constants SEEK_SET, SEEK_CUR, and SEEK_END are available via the <code>:seek</code> tag. The chmod()/stat() S_IF* constants and S_IS* functions are available via the <code>:mode</code> tag.</p>

</dd>
<dt id="File::Compare"><a class="permalink" href="perl561delta.html#File::Compare">#</a><a id="File5"></a>File::Compare</dt>
<dd>

<p>A compare_text() function has been added, which allows custom comparison functions. See <a href="./File::Compare.html">File::Compare</a>.</p>

</dd>
<dt id="File::Find2"><a class="permalink" href="perl561delta.html#File::Find2">#</a><a id="File6"></a>File::Find</dt>
<dd>

<p>File::Find now works correctly when the wanted() function is either autoloaded or is a symbolic reference.</p>

<p>A bug that caused File::Find to lose track of the working directory when pruning top-level directories has been fixed.</p>

<p>File::Find now also supports several other options to control its behavior. It can follow symbolic links if the <code>follow</code> option is specified. Enabling the <code>no_chdir</code> option will make File::Find skip changing the current directory when walking directories. The <code>untaint</code> flag can be useful when running with taint checks enabled.</p>

<p>See <a href="./File::Find.html">File::Find</a>.</p>

</dd>
<dt id="File::Glob"><a class="permalink" href="perl561delta.html#File::Glob">#</a><a id="File7"></a>File::Glob</dt>
<dd>

<p>This extension implements BSD-style file globbing. By default, it will also be used for the internal implementation of the glob() operator. See <a href="./File::Glob.html">File::Glob</a>.</p>

</dd>
<dt id="File::Spec"><a class="permalink" href="perl561delta.html#File::Spec">#</a><a id="File8"></a>File::Spec</dt>
<dd>

<p>New methods have been added to the File::Spec module: devnull() returns the name of the null device (/dev/null on Unix) and tmpdir() the name of the temp directory (normally /tmp on Unix). There are now also methods to convert between absolute and relative filenames: abs2rel() and rel2abs(). For compatibility with operating systems that specify volume names in file paths, the splitpath(), splitdir(), and catdir() methods have been added.</p>

</dd>
<dt id="File::Spec::Functions"><a class="permalink" href="perl561delta.html#File::Spec::Functions">#</a><a id="File9"></a>File::Spec::Functions</dt>
<dd>

<p>The new File::Spec::Functions modules provides a function interface to the File::Spec module. Allows shorthand</p>

<pre><code>$fullname = catfile($dir1, $dir2, $file);</code></pre>

<p>instead of</p>

<pre><code>$fullname = File::Spec-&gt;catfile($dir1, $dir2, $file);</code></pre>

</dd>
<dt id="Getopt::Long1"><a class="permalink" href="perl561delta.html#Getopt::Long1">#</a><a id="Getopt1"></a>Getopt::Long</dt>
<dd>

<p>Getopt::Long licensing has changed to allow the Perl Artistic License as well as the GPL. It used to be GPL only, which got in the way of non-GPL applications that wanted to use Getopt::Long.</p>

<p>Getopt::Long encourages the use of Pod::Usage to produce help messages. For example:</p>

<pre><code>use Getopt::Long;
use Pod::Usage;
my $man = 0;
my $help = 0;
GetOptions(&#39;help|?&#39; =&gt; \$help, man =&gt; \$man) or pod2usage(2);
pod2usage(1) if $help;
pod2usage(-exitstatus =&gt; 0, -verbose =&gt; 2) if $man;

__END__

=head1 NAME

sample - Using Getopt::Long and Pod::Usage

=head1 SYNOPSIS

sample [options] [file ...]

 Options:
   -help            brief help message
   -man             full documentation

=head1 OPTIONS

=over 8

=item B&lt;-help&gt;

Print a brief help message and exits.

=item B&lt;-man&gt;

Prints the manual page and exits.

=back

=head1 DESCRIPTION

B&lt;This program&gt; will read the given input file(s) and do something
useful with the contents thereof.

=cut</code></pre>

<p>See <a href="./Pod::Usage.html">Pod::Usage</a> for details.</p>

<p>A bug that prevented the non-option call-back &lt;&gt; from being specified as the first argument has been fixed.</p>

<p>To specify the characters &lt; and &gt; as option starters, use &gt;&lt;. Note, however, that changing option starters is strongly deprecated.</p>

</dd>
<dt id="IO"><a class="permalink" href="perl561delta.html#IO">#</a>IO</dt>
<dd>

<p>write() and syswrite() will now accept a single-argument form of the call, for consistency with Perl&#39;s syswrite().</p>

<p>You can now create a TCP-based IO::Socket::INET without forcing a connect attempt. This allows you to configure its options (like making it non-blocking) and then call connect() manually.</p>

<p>A bug that prevented the IO::Socket::protocol() accessor from ever returning the correct value has been corrected.</p>

<p>IO::Socket::connect now uses non-blocking IO instead of alarm() to do connect timeouts.</p>

<p>IO::Socket::accept now uses select() instead of alarm() for doing timeouts.</p>

<p>IO::Socket::INET-&gt;new now sets $! correctly on failure. $@ is still set for backwards compatibility.</p>

</dd>
<dt id="JPL"><a class="permalink" href="perl561delta.html#JPL">#</a>JPL</dt>
<dd>

<p>Java Perl Lingo is now distributed with Perl. See jpl/README for more information.</p>

</dd>
<dt id="lib"><a class="permalink" href="perl561delta.html#lib">#</a>lib</dt>
<dd>

<p><code>use lib</code> now weeds out any trailing duplicate entries. <code>no lib</code> removes all named entries.</p>

</dd>
<dt id="Math::BigInt"><a class="permalink" href="perl561delta.html#Math::BigInt">#</a><a id="Math2"></a>Math::BigInt</dt>
<dd>

<p>The bitwise operations <code>&lt;&lt;</code>, <code>&gt;&gt;</code>, <code>&amp;</code>, <code>|</code>, and <code>~</code> are now supported on bigints.</p>

</dd>
<dt id="Math::Complex1"><a class="permalink" href="perl561delta.html#Math::Complex1">#</a><a id="Math3"></a>Math::Complex</dt>
<dd>

<p>The accessor methods Re, Im, arg, abs, rho, and theta can now also act as mutators (accessor $z-&gt;Re(), mutator $z-&gt;Re(3)).</p>

<p>The class method <code>display_format</code> and the corresponding object method <code>display_format</code>, in addition to accepting just one argument, now can also accept a parameter hash. Recognized keys of a parameter hash are <code>&quot;style&quot;</code>, which corresponds to the old one parameter case, and two new parameters: <code>&quot;format&quot;</code>, which is a printf()-style format string (defaults usually to <code>&quot;%.15g&quot;</code>, you can revert to the default by setting the format string to <code>undef</code>) used for both parts of a complex number, and <code>&quot;polar_pretty_print&quot;</code> (defaults to true), which controls whether an attempt is made to try to recognize small multiples and rationals of pi (2pi, pi/2) at the argument (angle) of a polar complex number.</p>

<p>The potentially disruptive change is that in list context both methods now <i>return the parameter hash</i>, instead of only the value of the <code>&quot;style&quot;</code> parameter.</p>

</dd>
<dt id="Math::Trig"><a class="permalink" href="perl561delta.html#Math::Trig">#</a><a id="Math4"></a>Math::Trig</dt>
<dd>

<p>A little bit of radial trigonometry (cylindrical and spherical), radial coordinate conversions, and the great circle distance were added.</p>

</dd>
<dt id="Pod::Parser,-Pod::InputObjects"><a class="permalink" href="perl561delta.html#Pod::Parser,-Pod::InputObjects">#</a><a id="Pod4"></a><a id="Pod::Parser-Pod::InputObjects"></a>Pod::Parser, Pod::InputObjects</dt>
<dd>

<p>Pod::Parser is a base class for parsing and selecting sections of pod documentation from an input stream. This module takes care of identifying pod paragraphs and commands in the input and hands off the parsed paragraphs and commands to user-defined methods which are free to interpret or translate them as they see fit.</p>

<p>Pod::InputObjects defines some input objects needed by Pod::Parser, and for advanced users of Pod::Parser that need more about a command besides its name and text.</p>

<p>As of release 5.6.0 of Perl, Pod::Parser is now the officially sanctioned &quot;base parser code&quot; recommended for use by all pod2xxx translators. Pod::Text (pod2text) and Pod::Man (pod2man) have already been converted to use Pod::Parser and efforts to convert Pod::HTML (pod2html) are already underway. For any questions or comments about pod parsing and translating issues and utilities, please use the pod-people@perl.org mailing list.</p>

<p>For further information, please see <a href="./Pod::Parser.html">Pod::Parser</a> and <a href="./Pod::InputObjects.html">Pod::InputObjects</a>.</p>

</dd>
<dt id="Pod::Checker,-podchecker"><a class="permalink" href="perl561delta.html#Pod::Checker,-podchecker">#</a><a id="Pod5"></a><a id="Pod::Checker-podchecker"></a>Pod::Checker, podchecker</dt>
<dd>

<p>This utility checks pod files for correct syntax, according to <a href="perlpod.html">perlpod</a>. Obvious errors are flagged as such, while warnings are printed for mistakes that can be handled gracefully. The checklist is not complete yet. See <a href="./Pod::Checker.html">Pod::Checker</a>.</p>

</dd>
<dt id="Pod::ParseUtils,-Pod::Find"><a class="permalink" href="perl561delta.html#Pod::ParseUtils,-Pod::Find">#</a><a id="Pod6"></a><a id="Pod::ParseUtils-Pod::Find"></a>Pod::ParseUtils, Pod::Find</dt>
<dd>

<p>These modules provide a set of gizmos that are useful mainly for pod translators. <a href="./Pod::Find.html">Pod::Find</a> traverses directory structures and returns found pod files, along with their canonical names (like <code>File::Spec::Unix</code>). <a href="./Pod::ParseUtils.html">Pod::ParseUtils</a> contains <b>Pod::List</b> (useful for storing pod list information), <b>Pod::Hyperlink</b> (for parsing the contents of <code>L&lt;&gt;</code> sequences) and <b>Pod::Cache</b> (for caching information about pod files, e.g., link nodes).</p>

</dd>
<dt id="Pod::Select,-podselect"><a class="permalink" href="perl561delta.html#Pod::Select,-podselect">#</a><a id="Pod7"></a><a id="Pod::Select-podselect"></a>Pod::Select, podselect</dt>
<dd>

<p>Pod::Select is a subclass of Pod::Parser which provides a function named &quot;podselect()&quot; to filter out user-specified sections of raw pod documentation from an input stream. podselect is a script that provides access to Pod::Select from other scripts to be used as a filter. See <a href="./Pod::Select.html">Pod::Select</a>.</p>

</dd>
<dt id="Pod::Usage,-pod2usage"><a class="permalink" href="perl561delta.html#Pod::Usage,-pod2usage">#</a><a id="Pod8"></a><a id="Pod::Usage-pod2usage"></a>Pod::Usage, pod2usage</dt>
<dd>

<p>Pod::Usage provides the function &quot;pod2usage()&quot; to print usage messages for a Perl script based on its embedded pod documentation. The pod2usage() function is generally useful to all script authors since it lets them write and maintain a single source (the pods) for documentation, thus removing the need to create and maintain redundant usage message text consisting of information already in the pods.</p>

<p>There is also a pod2usage script which can be used from other kinds of scripts to print usage messages from pods (even for non-Perl scripts with pods embedded in comments).</p>

<p>For details and examples, please see <a href="./Pod::Usage.html">Pod::Usage</a>.</p>

</dd>
<dt id="Pod::Text-and-Pod::Man"><a class="permalink" href="perl561delta.html#Pod::Text-and-Pod::Man">#</a><a id="Pod9"></a>Pod::Text and Pod::Man</dt>
<dd>

<p>Pod::Text has been rewritten to use Pod::Parser. While pod2text() is still available for backwards compatibility, the module now has a new preferred interface. See <a href="./Pod::Text.html">Pod::Text</a> for the details. The new Pod::Text module is easily subclassed for tweaks to the output, and two such subclasses (Pod::Text::Termcap for man-page-style bold and underlining using termcap information, and Pod::Text::Color for markup with ANSI color sequences) are now standard.</p>

<p>pod2man has been turned into a module, Pod::Man, which also uses Pod::Parser. In the process, several outstanding bugs related to quotes in section headers, quoting of code escapes, and nested lists have been fixed. pod2man is now a wrapper script around this module.</p>

</dd>
<dt id="SDBM_File1"><a class="permalink" href="perl561delta.html#SDBM_File1">#</a>SDBM_File</dt>
<dd>

<p>An EXISTS method has been added to this module (and sdbm_exists() has been added to the underlying sdbm library), so one can now call exists on an SDBM_File tied hash and get the correct result, rather than a runtime error.</p>

<p>A bug that may have caused data loss when more than one disk block happens to be read from the database in a single FETCH() has been fixed.</p>

</dd>
<dt id="Sys::Syslog1"><a class="permalink" href="perl561delta.html#Sys::Syslog1">#</a><a id="Sys1"></a>Sys::Syslog</dt>
<dd>

<p>Sys::Syslog now uses XSUBs to access facilities from syslog.h so it no longer requires syslog.ph to exist.</p>

</dd>
<dt id="Sys::Hostname"><a class="permalink" href="perl561delta.html#Sys::Hostname">#</a><a id="Sys2"></a>Sys::Hostname</dt>
<dd>

<p>Sys::Hostname now uses XSUBs to call the C library&#39;s gethostname() or uname() if they exist.</p>

</dd>
<dt id="Term::ANSIColor"><a class="permalink" href="perl561delta.html#Term::ANSIColor">#</a><a id="Term"></a>Term::ANSIColor</dt>
<dd>

<p>Term::ANSIColor is a very simple module to provide easy and readable access to the ANSI color and highlighting escape sequences, supported by most ANSI terminal emulators. It is now included standard.</p>

</dd>
<dt id="Time::Local"><a class="permalink" href="perl561delta.html#Time::Local">#</a><a id="Time"></a>Time::Local</dt>
<dd>

<p>The timelocal() and timegm() functions used to silently return bogus results when the date fell outside the machine&#39;s integer range. They now consistently croak() if the date falls in an unsupported range.</p>

</dd>
<dt id="Win32"><a class="permalink" href="perl561delta.html#Win32">#</a>Win32</dt>
<dd>

<p>The error return value in list context has been changed for all functions that return a list of values. Previously these functions returned a list with a single element <code>undef</code> if an error occurred. Now these functions return the empty list in these situations. This applies to the following functions:</p>

<pre><code class="plaintext">Win32::FsType
Win32::GetOSVersion</code></pre>

<p>The remaining functions are unchanged and continue to return <code>undef</code> on error even in list context.</p>

<p>The Win32::SetLastError(ERROR) function has been added as a complement to the Win32::GetLastError() function.</p>

<p>The new Win32::GetFullPathName(FILENAME) returns the full absolute pathname for FILENAME in scalar context. In list context it returns a two-element list containing the fully qualified directory name and the filename. See <a href="Win32.html">Win32</a>.</p>

</dd>
<dt id="XSLoader"><a class="permalink" href="perl561delta.html#XSLoader">#</a>XSLoader</dt>
<dd>

<p>The XSLoader extension is a simpler alternative to DynaLoader. See <a href="XSLoader.html">XSLoader</a>.</p>

</dd>
<dt id="DBM-Filters"><a class="permalink" href="perl561delta.html#DBM-Filters">#</a><a id="DBM"></a>DBM Filters</dt>
<dd>

<p>A new feature called &quot;DBM Filters&quot; has been added to all the DBM modules--DB_File, GDBM_File, NDBM_File, ODBM_File, and SDBM_File. DBM Filters add four new methods to each DBM module:</p>

<pre><code class="plaintext">filter_store_key
filter_store_value
filter_fetch_key
filter_fetch_value</code></pre>

<p>These can be used to filter key-value pairs before the pairs are written to the database or just after they are read from the database. See <a href="perldbmfilter.html">perldbmfilter</a> for further information.</p>

</dd>
</dl>

<h2 id="Pragmata"><a class="permalink" href="perl561delta.html#Pragmata">#</a>Pragmata</h2>

<p><code>use attrs</code> is now obsolete, and is only provided for backward-compatibility. It&#39;s been replaced by the <code>sub : attributes</code> syntax. See <a href="perlsub.html#Subroutine-Attributes">&quot;Subroutine Attributes&quot; in perlsub</a> and <a href="attributes.html">attributes</a>.</p>

<p>Lexical warnings pragma, <code>use warnings;</code>, to control optional warnings. See <a href="perllexwarn.html">perllexwarn</a>.</p>

<p><code>use filetest</code> to control the behaviour of filetests (<code>-r</code> <code>-w</code> ...). Currently only one subpragma implemented, &quot;use filetest &#39;access&#39;;&quot;, that uses access(2) or equivalent to check permissions instead of using stat(2) as usual. This matters in filesystems where there are ACLs (access control lists): the stat(2) might lie, but access(2) knows better.</p>

<p>The <code>open</code> pragma can be used to specify default disciplines for handle constructors (e.g. open()) and for qx//. The two pseudo-disciplines <code>:raw</code> and <code>:crlf</code> are currently supported on DOS-derivative platforms (i.e. where binmode is not a no-op). See also <a href="perl561delta.html#binmode%28%29-can-be-used-to-set-%3Acrlf-and-%3Araw-modes">&quot;binmode() can be used to set :crlf and :raw modes&quot;</a>.</p>

<h1 id="Utility-Changes"><a class="permalink" href="perl561delta.html#Utility-Changes">#</a><a id="Utility"></a>Utility Changes</h1>

<h2 id="dprofpp"><a class="permalink" href="perl561delta.html#dprofpp">#</a>dprofpp</h2>

<p><code>dprofpp</code> is used to display profile data generated using <code>Devel::DProf</code>. See <a href="dprofpp.html">dprofpp</a>.</p>

<h2 id="find2perl"><a class="permalink" href="perl561delta.html#find2perl">#</a>find2perl</h2>

<p>The <code>find2perl</code> utility now uses the enhanced features of the File::Find module. The -depth and -follow options are supported. Pod documentation is also included in the script.</p>

<h2 id="h2xs"><a class="permalink" href="perl561delta.html#h2xs">#</a>h2xs</h2>

<p>The <code>h2xs</code> tool can now work in conjunction with <code>C::Scan</code> (available from CPAN) to automatically parse real-life header files. The <code>-M</code>, <code>-a</code>, <code>-k</code>, and <code>-o</code> options are new.</p>

<h2 id="perlcc"><a class="permalink" href="perl561delta.html#perlcc">#</a>perlcc</h2>

<p><code>perlcc</code> now supports the C and Bytecode backends. By default, it generates output from the simple C backend rather than the optimized C backend.</p>

<p>Support for non-Unix platforms has been improved.</p>

<h2 id="perldoc"><a class="permalink" href="perl561delta.html#perldoc">#</a>perldoc</h2>

<p><code>perldoc</code> has been reworked to avoid possible security holes. It will not by default let itself be run as the superuser, but you may still use the <b>-U</b> switch to try to make it drop privileges first.</p>

<h2 id="The-Perl-Debugger"><a class="permalink" href="perl561delta.html#The-Perl-Debugger">#</a><a id="The"></a>The Perl Debugger</h2>

<p>Many bug fixes and enhancements were added to <i>perl5db.pl</i>, the Perl debugger. The help documentation was rearranged. New commands include <code>&lt; ?</code>, <code>&gt; ?</code>, and <code>{ ?</code> to list out current actions, <code>man <i>docpage</i></code> to run your doc viewer on some perl docset, and support for quoted options. The help information was rearranged, and should be viewable once again if you&#39;re using <b>less</b> as your pager. A serious security hole was plugged--you should immediately remove all older versions of the Perl debugger as installed in previous releases, all the way back to perl3, from your system to avoid being bitten by this.</p>

<h1 id="Improved-Documentation"><a class="permalink" href="perl561delta.html#Improved-Documentation">#</a><a id="Improved4"></a>Improved Documentation</h1>

<p>Many of the platform-specific README files are now part of the perl installation. See <a href="perl.html">perl</a> for the complete list.</p>

<dl>

<dt id="perlapi.pod"><a class="permalink" href="perl561delta.html#perlapi.pod">#</a><a id="perlapi"></a>perlapi.pod</dt>
<dd>

<p>The official list of public Perl API functions.</p>

</dd>
<dt id="perlboot.pod"><a class="permalink" href="perl561delta.html#perlboot.pod">#</a><a id="perlboot"></a>perlboot.pod</dt>
<dd>

<p>A tutorial for beginners on object-oriented Perl.</p>

</dd>
<dt id="perlcompile.pod"><a class="permalink" href="perl561delta.html#perlcompile.pod">#</a><a id="perlcompile"></a>perlcompile.pod</dt>
<dd>

<p>An introduction to using the Perl Compiler suite.</p>

</dd>
<dt id="perldbmfilter.pod"><a class="permalink" href="perl561delta.html#perldbmfilter.pod">#</a><a id="perldbmfilter"></a>perldbmfilter.pod</dt>
<dd>

<p>A howto document on using the DBM filter facility.</p>

</dd>
<dt id="perldebug.pod"><a class="permalink" href="perl561delta.html#perldebug.pod">#</a><a id="perldebug"></a>perldebug.pod</dt>
<dd>

<p>All material unrelated to running the Perl debugger, plus all low-level guts-like details that risked crushing the casual user of the debugger, have been relocated from the old manpage to the next entry below.</p>

</dd>
<dt id="perldebguts.pod"><a class="permalink" href="perl561delta.html#perldebguts.pod">#</a><a id="perldebguts"></a>perldebguts.pod</dt>
<dd>

<p>This new manpage contains excessively low-level material not related to the Perl debugger, but slightly related to debugging Perl itself. It also contains some arcane internal details of how the debugging process works that may only be of interest to developers of Perl debuggers.</p>

</dd>
<dt id="perlfork.pod"><a class="permalink" href="perl561delta.html#perlfork.pod">#</a><a id="perlfork"></a>perlfork.pod</dt>
<dd>

<p>Notes on the fork() emulation currently available for the Windows platform.</p>

</dd>
<dt id="perlfilter.pod"><a class="permalink" href="perl561delta.html#perlfilter.pod">#</a><a id="perlfilter"></a>perlfilter.pod</dt>
<dd>

<p>An introduction to writing Perl source filters.</p>

</dd>
<dt id="perlhack.pod"><a class="permalink" href="perl561delta.html#perlhack.pod">#</a><a id="perlhack"></a>perlhack.pod</dt>
<dd>

<p>Some guidelines for hacking the Perl source code.</p>

</dd>
<dt id="perlintern.pod"><a class="permalink" href="perl561delta.html#perlintern.pod">#</a><a id="perlintern"></a>perlintern.pod</dt>
<dd>

<p>A list of internal functions in the Perl source code. (List is currently empty.)</p>

</dd>
<dt id="perllexwarn.pod"><a class="permalink" href="perl561delta.html#perllexwarn.pod">#</a><a id="perllexwarn"></a>perllexwarn.pod</dt>
<dd>

<p>Introduction and reference information about lexically scoped warning categories.</p>

</dd>
<dt id="perlnumber.pod"><a class="permalink" href="perl561delta.html#perlnumber.pod">#</a><a id="perlnumber"></a>perlnumber.pod</dt>
<dd>

<p>Detailed information about numbers as they are represented in Perl.</p>

</dd>
<dt id="perlopentut.pod"><a class="permalink" href="perl561delta.html#perlopentut.pod">#</a><a id="perlopentut"></a>perlopentut.pod</dt>
<dd>

<p>A tutorial on using open() effectively.</p>

</dd>
<dt id="perlreftut.pod"><a class="permalink" href="perl561delta.html#perlreftut.pod">#</a><a id="perlreftut"></a>perlreftut.pod</dt>
<dd>

<p>A tutorial that introduces the essentials of references.</p>

</dd>
<dt id="perltootc.pod"><a class="permalink" href="perl561delta.html#perltootc.pod">#</a><a id="perltootc"></a>perltootc.pod</dt>
<dd>

<p>A tutorial on managing class data for object modules.</p>

</dd>
<dt id="perltodo.pod"><a class="permalink" href="perl561delta.html#perltodo.pod">#</a><a id="perltodo"></a>perltodo.pod</dt>
<dd>

<p>Discussion of the most often wanted features that may someday be supported in Perl.</p>

</dd>
<dt id="perlunicode.pod"><a class="permalink" href="perl561delta.html#perlunicode.pod">#</a><a id="perlunicode"></a>perlunicode.pod</dt>
<dd>

<p>An introduction to Unicode support features in Perl.</p>

</dd>
</dl>

<h1 id="Performance-enhancements"><a class="permalink" href="perl561delta.html#Performance-enhancements">#</a><a id="Performance"></a>Performance enhancements</h1>

<h2 id="Simple-sort()-using-{-$a-&lt;=&gt;-$b-}-and-the-like-are-optimized"><a class="permalink" href="perl561delta.html#Simple-sort()-using-%7B-$a-%3C=%3E-$b-%7D-and-the-like-are-optimized">#</a><a id="Simple"></a><a id="Simple-sort-using-a-b-and-the-like-are-optimized"></a>Simple sort() using { $a &lt;=&gt; $b } and the like are optimized</h2>

<p>Many common sort() operations using a simple inlined block are now optimized for faster performance.</p>

<h2 id="Optimized-assignments-to-lexical-variables"><a class="permalink" href="perl561delta.html#Optimized-assignments-to-lexical-variables">#</a><a id="Optimized"></a>Optimized assignments to lexical variables</h2>

<p>Certain operations in the RHS of assignment statements have been optimized to directly set the lexical variable on the LHS, eliminating redundant copying overheads.</p>

<h2 id="Faster-subroutine-calls"><a class="permalink" href="perl561delta.html#Faster-subroutine-calls">#</a><a id="Faster"></a>Faster subroutine calls</h2>

<p>Minor changes in how subroutine calls are handled internally provide marginal improvements in performance.</p>

<h2 id="delete(),-each(),-values()-and-hash-iteration-are-faster"><a class="permalink" href="perl561delta.html#delete(),-each(),-values()-and-hash-iteration-are-faster">#</a><a id="delete"></a><a id="delete-each-values-and-hash-iteration-are-faster"></a>delete(), each(), values() and hash iteration are faster</h2>

<p>The hash values returned by delete(), each(), values() and hashes in a list context are the actual values in the hash, instead of copies. This results in significantly better performance, because it eliminates needless copying in most situations.</p>

<h1 id="Installation-and-Configuration-Improvements"><a class="permalink" href="perl561delta.html#Installation-and-Configuration-Improvements">#</a><a id="Installation"></a>Installation and Configuration Improvements</h1>

<h2 id="-Dusethreads-means-something-different"><a class="permalink" href="perl561delta.html#-Dusethreads-means-something-different">#</a><a id="Dusethreads-means-something-different"></a>-Dusethreads means something different</h2>

<p>The -Dusethreads flag now enables the experimental interpreter-based thread support by default. To get the flavor of experimental threads that was in 5.005 instead, you need to run Configure with &quot;-Dusethreads -Duse5005threads&quot;.</p>

<p>As of v5.6.0, interpreter-threads support is still lacking a way to create new threads from Perl (i.e., <code>use Thread;</code> will not work with interpreter threads). <code>use Thread;</code> continues to be available when you specify the -Duse5005threads option to Configure, bugs and all.</p>

<pre><code class="plaintext">NOTE: Support for threads continues to be an experimental feature.
Interfaces and implementation are subject to sudden and drastic changes.</code></pre>

<h2 id="New-Configure-flags"><a class="permalink" href="perl561delta.html#New-Configure-flags">#</a><a id="New3"></a>New Configure flags</h2>

<p>The following new flags may be enabled on the Configure command line by running Configure with <code>-Dflag</code>.</p>

<pre><code class="plaintext">usemultiplicity
usethreads useithreads	(new interpreter threads: no Perl API yet)
usethreads use5005threads	(threads as they were in 5.005)

use64bitint			(equal to now deprecated &#39;use64bits&#39;)
use64bitall

uselongdouble
usemorebits
uselargefiles
usesocks			(only SOCKS v5 supported)</code></pre>

<h2 id="Threadedness-and-64-bitness-now-more-daring"><a class="permalink" href="perl561delta.html#Threadedness-and-64-bitness-now-more-daring">#</a><a id="Threadedness"></a>Threadedness and 64-bitness now more daring</h2>

<p>The Configure options enabling the use of threads and the use of 64-bitness are now more daring in the sense that they no more have an explicit list of operating systems of known threads/64-bit capabilities. In other words: if your operating system has the necessary APIs and datatypes, you should be able just to go ahead and use them, for threads by Configure -Dusethreads, and for 64 bits either explicitly by Configure -Duse64bitint or implicitly if your system has 64-bit wide datatypes. See also <a href="perl561delta.html#64-bit-support">&quot;64-bit support&quot;</a>.</p>

<h2 id="Long-Doubles"><a class="permalink" href="perl561delta.html#Long-Doubles">#</a><a id="Long1"></a>Long Doubles</h2>

<p>Some platforms have &quot;long doubles&quot;, floating point numbers of even larger range than ordinary &quot;doubles&quot;. To enable using long doubles for Perl&#39;s scalars, use -Duselongdouble.</p>

<h2 id="-Dusemorebits"><a class="permalink" href="perl561delta.html#-Dusemorebits">#</a><a id="Dusemorebits"></a>-Dusemorebits</h2>

<p>You can enable both -Duse64bitint and -Duselongdouble with -Dusemorebits. See also <a href="perl561delta.html#64-bit-support">&quot;64-bit support&quot;</a>.</p>

<h2 id="-Duselargefiles"><a class="permalink" href="perl561delta.html#-Duselargefiles">#</a><a id="Duselargefiles"></a>-Duselargefiles</h2>

<p>Some platforms support system APIs that are capable of handling large files (typically, files larger than two gigabytes). Perl will try to use these APIs if you ask for -Duselargefiles.</p>

<p>See <a href="perl561delta.html#Large-file-support">&quot;Large file support&quot;</a> for more information.</p>

<h2 id="installusrbinperl"><a class="permalink" href="perl561delta.html#installusrbinperl">#</a>installusrbinperl</h2>

<p>You can use &quot;Configure -Uinstallusrbinperl&quot; which causes installperl to skip installing perl also as /usr/bin/perl. This is useful if you prefer not to modify /usr/bin for some reason or another but harmful because many scripts assume to find Perl in /usr/bin/perl.</p>

<h2 id="SOCKS-support"><a class="permalink" href="perl561delta.html#SOCKS-support">#</a><a id="SOCKS"></a>SOCKS support</h2>

<p>You can use &quot;Configure -Dusesocks&quot; which causes Perl to probe for the SOCKS proxy protocol library (v5, not v4). For more information on SOCKS, see:</p>

<pre><code class="plaintext">http://www.socks.nec.com/</code></pre>

<h2 id="-A-flag"><a class="permalink" href="perl561delta.html#-A-flag">#</a><a id="A-flag"></a><code>-A</code> flag</h2>

<p>You can &quot;post-edit&quot; the Configure variables using the Configure <code>-A</code> switch. The editing happens immediately after the platform specific hints files have been processed but before the actual configuration process starts. Run <code>Configure -h</code> to find out the full <code>-A</code> syntax.</p>

<h2 id="Enhanced-Installation-Directories"><a class="permalink" href="perl561delta.html#Enhanced-Installation-Directories">#</a><a id="Enhanced1"></a>Enhanced Installation Directories</h2>

<p>The installation structure has been enriched to improve the support for maintaining multiple versions of perl, to provide locations for vendor-supplied modules, scripts, and manpages, and to ease maintenance of locally-added modules, scripts, and manpages. See the section on Installation Directories in the INSTALL file for complete details. For most users building and installing from source, the defaults should be fine.</p>

<p>If you previously used <code>Configure -Dsitelib</code> or <code>-Dsitearch</code> to set special values for library directories, you might wish to consider using the new <code>-Dsiteprefix</code> setting instead. Also, if you wish to re-use a config.sh file from an earlier version of perl, you should be sure to check that Configure makes sensible choices for the new directories. See INSTALL for complete details.</p>

<h2 id="gcc-automatically-tried-if-&#39;cc&#39;-does-not-seem-to-be-working"><a class="permalink" href="perl561delta.html#gcc-automatically-tried-if-&#39;cc&#39;-does-not-seem-to-be-working">#</a><a id="gcc"></a><a id="gcc-automatically-tried-if-cc-does-not-seem-to-be-working"></a>gcc automatically tried if &#39;cc&#39; does not seem to be working</h2>

<p>In many platforms the vendor-supplied &#39;cc&#39; is too stripped-down to build Perl (basically, the &#39;cc&#39; doesn&#39;t do ANSI C). If this seems to be the case and the &#39;cc&#39; does not seem to be the GNU C compiler &#39;gcc&#39;, an automatic attempt is made to find and use &#39;gcc&#39; instead.</p>

<h1 id="Platform-specific-changes"><a class="permalink" href="perl561delta.html#Platform-specific-changes">#</a><a id="Platform1"></a>Platform specific changes</h1>

<h2 id="Supported-platforms"><a class="permalink" href="perl561delta.html#Supported-platforms">#</a><a id="Supported"></a>Supported platforms</h2>

<ul>

<li><p>The Mach CThreads (NEXTSTEP, OPENSTEP) are now supported by the Thread extension.</p>

</li>
<li><p>GNU/Hurd is now supported.</p>

</li>
<li><p>Rhapsody/Darwin is now supported.</p>

</li>
<li><p>EPOC is now supported (on Psion 5).</p>

</li>
<li><p>The cygwin port (formerly cygwin32) has been greatly improved.</p>

</li>
</ul>

<h2 id="DOS"><a class="permalink" href="perl561delta.html#DOS">#</a>DOS</h2>

<ul>

<li><p>Perl now works with djgpp 2.02 (and 2.03 alpha).</p>

</li>
<li><p>Environment variable names are not converted to uppercase any more.</p>

</li>
<li><p>Incorrect exit codes from backticks have been fixed.</p>

</li>
<li><p>This port continues to use its own builtin globbing (not File::Glob).</p>

</li>
</ul>

<h2 id="OS390-(OpenEdition-MVS)"><a class="permalink" href="perl561delta.html#OS390-(OpenEdition-MVS)">#</a><a id="OS390"></a><a id="OS390-OpenEdition-MVS"></a>OS390 (OpenEdition MVS)</h2>

<p>Support for this EBCDIC platform has not been renewed in this release. There are difficulties in reconciling Perl&#39;s standardization on UTF-8 as its internal representation for characters with the EBCDIC character set, because the two are incompatible.</p>

<p>It is unclear whether future versions will renew support for this platform, but the possibility exists.</p>

<h2 id="VMS"><a class="permalink" href="perl561delta.html#VMS">#</a>VMS</h2>

<p>Numerous revisions and extensions to configuration, build, testing, and installation process to accommodate core changes and VMS-specific options.</p>

<p>Expand %ENV-handling code to allow runtime mapping to logical names, CLI symbols, and CRTL environ array.</p>

<p>Extension of subprocess invocation code to accept filespecs as command &quot;verbs&quot;.</p>

<p>Add to Perl command line processing the ability to use default file types and to recognize Unix-style <code>2&gt;&amp;1</code>.</p>

<p>Expansion of File::Spec::VMS routines, and integration into ExtUtils::MM_VMS.</p>

<p>Extension of ExtUtils::MM_VMS to handle complex extensions more flexibly.</p>

<p>Barewords at start of Unix-syntax paths may be treated as text rather than only as logical names.</p>

<p>Optional secure translation of several logical names used internally by Perl.</p>

<p>Miscellaneous bugfixing and porting of new core code to VMS.</p>

<p>Thanks are gladly extended to the many people who have contributed VMS patches, testing, and ideas.</p>

<h2 id="Win321"><a class="permalink" href="perl561delta.html#Win321">#</a>Win32</h2>

<p>Perl can now emulate fork() internally, using multiple interpreters running in different concurrent threads. This support must be enabled at build time. See <a href="perlfork.html">perlfork</a> for detailed information.</p>

<p>When given a pathname that consists only of a drivename, such as <code>A:</code>, opendir() and stat() now use the current working directory for the drive rather than the drive root.</p>

<p>The builtin XSUB functions in the Win32:: namespace are documented. See <a href="Win32.html">Win32</a>.</p>

<p>$^X now contains the full path name of the running executable.</p>

<p>A Win32::GetLongPathName() function is provided to complement Win32::GetFullPathName() and Win32::GetShortPathName(). See <a href="Win32.html">Win32</a>.</p>

<p>POSIX::uname() is supported.</p>

<p>system(1,...) now returns true process IDs rather than process handles. kill() accepts any real process id, rather than strictly return values from system(1,...).</p>

<p>For better compatibility with Unix, <code>kill(0, $pid)</code> can now be used to test whether a process exists.</p>

<p>The <code>Shell</code> module is supported.</p>

<p>Better support for building Perl under command.com in Windows 95 has been added.</p>

<p>Scripts are read in binary mode by default to allow ByteLoader (and the filter mechanism in general) to work properly. For compatibility, the DATA filehandle will be set to text mode if a carriage return is detected at the end of the line containing the __END__ or __DATA__ token; if not, the DATA filehandle will be left open in binary mode. Earlier versions always opened the DATA filehandle in text mode.</p>

<p>The glob() operator is implemented via the <code>File::Glob</code> extension, which supports glob syntax of the C shell. This increases the flexibility of the glob() operator, but there may be compatibility issues for programs that relied on the older globbing syntax. If you want to preserve compatibility with the older syntax, you might want to run perl with <code>-MFile::DosGlob</code>. For details and compatibility information, see <a href="./File::Glob.html">File::Glob</a>.</p>

<h1 id="Significant-bug-fixes"><a class="permalink" href="perl561delta.html#Significant-bug-fixes">#</a><a id="Significant"></a>Significant bug fixes</h1>

<h2 id="&lt;HANDLE&gt;-on-empty-files"><a class="permalink" href="perl561delta.html#%3CHANDLE%3E-on-empty-files">#</a><a id="HANDLE-on-empty-files"></a>&lt;HANDLE&gt; on empty files</h2>

<p>With <code>$/</code> set to <code>undef</code>, &quot;slurping&quot; an empty file returns a string of zero length (instead of <code>undef</code>, as it used to) the first time the HANDLE is read after <code>$/</code> is set to <code>undef</code>. Further reads yield <code>undef</code>.</p>

<p>This means that the following will append &quot;foo&quot; to an empty file (it used to do nothing):</p>

<pre><code class="plaintext">perl -0777 -pi -e &#39;s/^/foo/&#39; empty_file</code></pre>

<p>The behaviour of:</p>

<pre><code class="plaintext">perl -pi -e &#39;s/^/foo/&#39; empty_file</code></pre>

<p>is unchanged (it continues to leave the file empty).</p>

<h2 id="eval-&#39;...&#39;-improvements"><a class="permalink" href="perl561delta.html#eval-&#39;...&#39;-improvements">#</a><a id="eval"></a><a id="eval-...-improvements"></a><code>eval &#39;...&#39;</code> improvements</h2>

<p>Line numbers (as reflected by caller() and most diagnostics) within <code>eval &#39;...&#39;</code> were often incorrect where here documents were involved. This has been corrected.</p>

<p>Lexical lookups for variables appearing in <code>eval &#39;...&#39;</code> within functions that were themselves called within an <code>eval &#39;...&#39;</code> were searching the wrong place for lexicals. The lexical search now correctly ends at the subroutine&#39;s block boundary.</p>

<p>The use of <code>return</code> within <code>eval {...}</code> caused $@ not to be reset correctly when no exception occurred within the eval. This has been fixed.</p>

<p>Parsing of here documents used to be flawed when they appeared as the replacement expression in <code>eval &#39;s/.../.../e&#39;</code>. This has been fixed.</p>

<h2 id="All-compilation-errors-are-true-errors"><a class="permalink" href="perl561delta.html#All-compilation-errors-are-true-errors">#</a><a id="All"></a>All compilation errors are true errors</h2>

<p>Some &quot;errors&quot; encountered at compile time were by necessity generated as warnings followed by eventual termination of the program. This enabled more such errors to be reported in a single run, rather than causing a hard stop at the first error that was encountered.</p>

<p>The mechanism for reporting such errors has been reimplemented to queue compile-time errors and report them at the end of the compilation as true errors rather than as warnings. This fixes cases where error messages leaked through in the form of warnings when code was compiled at run time using <code>eval STRING</code>, and also allows such errors to be reliably trapped using <code>eval &quot;...&quot;</code>.</p>

<h2 id="Implicitly-closed-filehandles-are-safer"><a class="permalink" href="perl561delta.html#Implicitly-closed-filehandles-are-safer">#</a><a id="Implicitly"></a>Implicitly closed filehandles are safer</h2>

<p>Sometimes implicitly closed filehandles (as when they are localized, and Perl automatically closes them on exiting the scope) could inadvertently set $? or $!. This has been corrected.</p>

<h2 id="Behavior-of-list-slices-is-more-consistent"><a class="permalink" href="perl561delta.html#Behavior-of-list-slices-is-more-consistent">#</a><a id="Behavior"></a>Behavior of list slices is more consistent</h2>

<p>When taking a slice of a literal list (as opposed to a slice of an array or hash), Perl used to return an empty list if the result happened to be composed of all undef values.</p>

<p>The new behavior is to produce an empty list if (and only if) the original list was empty. Consider the following example:</p>

<pre><code>@a = (1,undef,undef,2)[2,1,2];</code></pre>

<p>The old behavior would have resulted in @a having no elements. The new behavior ensures it has three undefined elements.</p>

<p>Note in particular that the behavior of slices of the following cases remains unchanged:</p>

<pre><code>@a = ()[1,2];
@a = (getpwent)[7,0];
@a = (anything_returning_empty_list())[2,1,2];
@a = @b[2,1,2];
@a = @c{&#39;a&#39;,&#39;b&#39;,&#39;c&#39;};</code></pre>

<p>See <a href="perldata.html">perldata</a>.</p>

<h2 id="(\$)-prototype-and-$foo{a}"><a class="permalink" href="perl561delta.html#(%5C$)-prototype-and-$foo%7Ba%7D">#</a><a id="prototype-and-foo-a"></a><code>(\$)</code> prototype and <code>$foo{a}</code></h2>

<p>A scalar reference prototype now correctly allows a hash or array element in that slot.</p>

<h2 id="goto-&amp;sub-and-AUTOLOAD"><a class="permalink" href="perl561delta.html#goto-&amp;sub-and-AUTOLOAD">#</a><a id="goto"></a><a id="goto-sub-and-AUTOLOAD"></a><code>goto &amp;sub</code> and AUTOLOAD</h2>

<p>The <code>goto &amp;sub</code> construct works correctly when <code>&amp;sub</code> happens to be autoloaded.</p>

<h2 id="-bareword-allowed-under-use-integer"><a class="permalink" href="perl561delta.html#-bareword-allowed-under-use-integer">#</a><a id="bareword-allowed-under-use-integer"></a><code>-bareword</code> allowed under <code>use integer</code></h2>

<p>The autoquoting of barewords preceded by <code>-</code> did not work in prior versions when the <code>integer</code> pragma was enabled. This has been fixed.</p>

<h2 id="Failures-in-DESTROY()"><a class="permalink" href="perl561delta.html#Failures-in-DESTROY()">#</a><a id="Failures"></a><a id="Failures-in-DESTROY"></a>Failures in DESTROY()</h2>

<p>When code in a destructor threw an exception, it went unnoticed in earlier versions of Perl, unless someone happened to be looking in $@ just after the point the destructor happened to run. Such failures are now visible as warnings when warnings are enabled.</p>

<h2 id="Locale-bugs-fixed"><a class="permalink" href="perl561delta.html#Locale-bugs-fixed">#</a><a id="Locale"></a>Locale bugs fixed</h2>

<p>printf() and sprintf() previously reset the numeric locale back to the default &quot;C&quot; locale. This has been fixed.</p>

<p>Numbers formatted according to the local numeric locale (such as using a decimal comma instead of a decimal dot) caused &quot;isn&#39;t numeric&quot; warnings, even while the operations accessing those numbers produced correct results. These warnings have been discontinued.</p>

<h2 id="Memory-leaks1"><a class="permalink" href="perl561delta.html#Memory-leaks1">#</a><a id="Memory1"></a>Memory leaks</h2>

<p>The <code>eval &#39;return sub {...}&#39;</code> construct could sometimes leak memory. This has been fixed.</p>

<p>Operations that aren&#39;t filehandle constructors used to leak memory when used on invalid filehandles. This has been fixed.</p>

<p>Constructs that modified <code>@_</code> could fail to deallocate values in <code>@_</code> and thus leak memory. This has been corrected.</p>

<h2 id="Spurious-subroutine-stubs-after-failed-subroutine-calls"><a class="permalink" href="perl561delta.html#Spurious-subroutine-stubs-after-failed-subroutine-calls">#</a><a id="Spurious1"></a>Spurious subroutine stubs after failed subroutine calls</h2>

<p>Perl could sometimes create empty subroutine stubs when a subroutine was not found in the package. Such cases stopped later method lookups from progressing into base packages. This has been corrected.</p>

<h2 id="Taint-failures-under-U"><a class="permalink" href="perl561delta.html#Taint-failures-under-U">#</a><a id="Taint"></a><a id="Taint-failures-under--U"></a>Taint failures under <code>-U</code></h2>

<p>When running in unsafe mode, taint violations could sometimes cause silent failures. This has been fixed.</p>

<h2 id="END-blocks-and-the-c-switch"><a class="permalink" href="perl561delta.html#END-blocks-and-the-c-switch">#</a><a id="END"></a><a id="END-blocks-and-the--c-switch"></a>END blocks and the <code>-c</code> switch</h2>

<p>Prior versions used to run BEGIN <b>and</b> END blocks when Perl was run in compile-only mode. Since this is typically not the expected behavior, END blocks are not executed anymore when the <code>-c</code> switch is used, or if compilation fails.</p>

<p>See <a href="perl561delta.html#Support-for-CHECK-blocks">&quot;Support for CHECK blocks&quot;</a> for how to run things when the compile phase ends.</p>

<h2 id="Potential-to-leak-DATA-filehandles"><a class="permalink" href="perl561delta.html#Potential-to-leak-DATA-filehandles">#</a><a id="Potential"></a>Potential to leak DATA filehandles</h2>

<p>Using the <code>__DATA__</code> token creates an implicit filehandle to the file that contains the token. It is the program&#39;s responsibility to close it when it is done reading from it.</p>

<p>This caveat is now better explained in the documentation. See <a href="perldata.html">perldata</a>.</p>

<h1 id="New-or-Changed-Diagnostics"><a class="permalink" href="perl561delta.html#New-or-Changed-Diagnostics">#</a><a id="New4"></a>New or Changed Diagnostics</h1>

<dl>

<dt id="&quot;%s&quot;-variable-%s-masks-earlier-declaration-in-same-%s"><a class="permalink" href="perl561delta.html#%22%25s%22-variable-%25s-masks-earlier-declaration-in-same-%25s">#</a><a id="s-variable-s-masks-earlier-declaration-in-same-s"></a>&quot;%s&quot; variable %s masks earlier declaration in same %s</dt>
<dd>

<p>(W misc) A &quot;my&quot; or &quot;our&quot; variable has been redeclared in the current scope or statement, effectively eliminating all access to the previous instance. This is almost always a typographical error. Note that the earlier variable will still exist until the end of the scope or until all closure referents to it are destroyed.</p>

</dd>
<dt id="&quot;my-sub&quot;-not-yet-implemented"><a class="permalink" href="perl561delta.html#%22my-sub%22-not-yet-implemented">#</a><a id="my-sub-not-yet-implemented"></a>&quot;my sub&quot; not yet implemented</dt>
<dd>

<p>(F) Lexically scoped subroutines are not yet implemented. Don&#39;t try that yet.</p>

</dd>
<dt id="&quot;our&quot;-variable-%s-redeclared"><a class="permalink" href="perl561delta.html#%22our%22-variable-%25s-redeclared">#</a><a id="our-variable-s-redeclared"></a>&quot;our&quot; variable %s redeclared</dt>
<dd>

<p>(W misc) You seem to have already declared the same global once before in the current lexical scope.</p>

</dd>
<dt id="&#39;!&#39;-allowed-only-after-types-%s"><a class="permalink" href="perl561delta.html#&#39;!&#39;-allowed-only-after-types-%25s">#</a><a id="allowed-only-after-types-s"></a>&#39;!&#39; allowed only after types %s</dt>
<dd>

<p>(F) The &#39;!&#39; is allowed in pack() and unpack() only after certain types. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="/-cannot-take-a-count"><a class="permalink" href="perl561delta.html#/-cannot-take-a-count">#</a><a id="cannot-take-a-count"></a>/ cannot take a count</dt>
<dd>

<p>(F) You had an unpack template indicating a counted-length string, but you have also specified an explicit size for the string. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="/-must-be-followed-by-a,-A-or-Z"><a class="permalink" href="perl561delta.html#/-must-be-followed-by-a,-A-or-Z">#</a><a id="must-be-followed-by-a-A-or-Z"></a>/ must be followed by a, A or Z</dt>
<dd>

<p>(F) You had an unpack template indicating a counted-length string, which must be followed by one of the letters a, A or Z to indicate what sort of string is to be unpacked. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="/-must-be-followed-by-a*,-A*-or-Z*"><a class="permalink" href="perl561delta.html#/-must-be-followed-by-a*,-A*-or-Z*">#</a><a id="must-be-followed-by-a-A-or-Z1"></a>/ must be followed by a*, A* or Z*</dt>
<dd>

<p>(F) You had a pack template indicating a counted-length string, Currently the only things that can have their length counted are a*, A* or Z*. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="/-must-follow-a-numeric-type"><a class="permalink" href="perl561delta.html#/-must-follow-a-numeric-type">#</a><a id="must-follow-a-numeric-type"></a>/ must follow a numeric type</dt>
<dd>

<p>(F) You had an unpack template that contained a &#39;#&#39;, but this did not follow some numeric unpack specification. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="/%s/:-Unrecognized-escape-\\%c-passed-through"><a class="permalink" href="perl561delta.html#/%25s/:-Unrecognized-escape-%5C%5C%25c-passed-through">#</a><a id="s-:-Unrecognized-escape-c-passed-through"></a>/%s/: Unrecognized escape \\%c passed through</dt>
<dd>

<p>(W regexp) You used a backslash-character combination which is not recognized by Perl. This combination appears in an interpolated variable or a <code>&#39;</code>-delimited regular expression. The character was understood literally.</p>

</dd>
<dt id="/%s/:-Unrecognized-escape-\\%c-in-character-class-passed-through"><a class="permalink" href="perl561delta.html#/%25s/:-Unrecognized-escape-%5C%5C%25c-in-character-class-passed-through">#</a><a id="s-:-Unrecognized-escape-c-in-character-class-passed-through"></a>/%s/: Unrecognized escape \\%c in character class passed through</dt>
<dd>

<p>(W regexp) You used a backslash-character combination which is not recognized by Perl inside character classes. The character was understood literally.</p>

</dd>
<dt id="/%s/-should-probably-be-written-as-&quot;%s&quot;"><a class="permalink" href="perl561delta.html#/%25s/-should-probably-be-written-as-%22%25s%22">#</a><a id="s-should-probably-be-written-as-s"></a>/%s/ should probably be written as &quot;%s&quot;</dt>
<dd>

<p>(W syntax) You have used a pattern where Perl expected to find a string, as in the first argument to <code>join</code>. Perl will treat the true or false result of matching the pattern against $_ as the string, which is probably not what you had in mind.</p>

</dd>
<dt id="%s()-called-too-early-to-check-prototype"><a class="permalink" href="perl561delta.html#%25s()-called-too-early-to-check-prototype">#</a><a id="s-called-too-early-to-check-prototype"></a>%s() called too early to check prototype</dt>
<dd>

<p>(W prototype) You&#39;ve called a function that has a prototype before the parser saw a definition or declaration for it, and Perl could not check that the call conforms to the prototype. You need to either add an early prototype declaration for the subroutine in question, or move the subroutine definition ahead of the call to get proper prototype checking. Alternatively, if you are certain that you&#39;re calling the function correctly, you may put an ampersand before the name to avoid the warning. See <a href="perlsub.html">perlsub</a>.</p>

</dd>
<dt id="%s-argument-is-not-a-HASH-or-ARRAY-element"><a class="permalink" href="perl561delta.html#%25s-argument-is-not-a-HASH-or-ARRAY-element">#</a><a id="s-argument-is-not-a-HASH-or-ARRAY-element"></a>%s argument is not a HASH or ARRAY element</dt>
<dd>

<p>(F) The argument to exists() must be a hash or array element, such as:</p>

<pre><code>$foo{$bar}
$ref-&gt;{&quot;susie&quot;}[12]</code></pre>

</dd>
<dt id="%s-argument-is-not-a-HASH-or-ARRAY-element-or-slice"><a class="permalink" href="perl561delta.html#%25s-argument-is-not-a-HASH-or-ARRAY-element-or-slice">#</a><a id="s-argument-is-not-a-HASH-or-ARRAY-element-or-slice"></a>%s argument is not a HASH or ARRAY element or slice</dt>
<dd>

<p>(F) The argument to delete() must be either a hash or array element, such as:</p>

<pre><code>$foo{$bar}
$ref-&gt;{&quot;susie&quot;}[12]</code></pre>

<p>or a hash or array slice, such as:</p>

<pre><code>@foo[$bar, $baz, $xyzzy]
@{$ref-&gt;[12]}{&quot;susie&quot;, &quot;queue&quot;}</code></pre>

</dd>
<dt id="%s-argument-is-not-a-subroutine-name"><a class="permalink" href="perl561delta.html#%25s-argument-is-not-a-subroutine-name">#</a><a id="s-argument-is-not-a-subroutine-name"></a>%s argument is not a subroutine name</dt>
<dd>

<p>(F) The argument to exists() for <code>exists &amp;sub</code> must be a subroutine name, and not a subroutine call. <code>exists &amp;sub()</code> will generate this error.</p>

</dd>
<dt id="%s-package-attribute-may-clash-with-future-reserved-word:-%s"><a class="permalink" href="perl561delta.html#%25s-package-attribute-may-clash-with-future-reserved-word:-%25s">#</a><a id="s-package-attribute-may-clash-with-future-reserved-word:-s"></a>%s package attribute may clash with future reserved word: %s</dt>
<dd>

<p>(W reserved) A lowercase attribute name was used that had a package-specific handler. That name might have a meaning to Perl itself some day, even though it doesn&#39;t yet. Perhaps you should use a mixed-case attribute name, instead. See <a href="attributes.html">attributes</a>.</p>

</dd>
<dt id="(in-cleanup)-%s"><a class="permalink" href="perl561delta.html#(in-cleanup)-%25s">#</a><a id="in-cleanup-s"></a>(in cleanup) %s</dt>
<dd>

<p>(W misc) This prefix usually indicates that a DESTROY() method raised the indicated exception. Since destructors are usually called by the system at arbitrary points during execution, and often a vast number of times, the warning is issued only once for any number of failures that would otherwise result in the same message being repeated.</p>

<p>Failure of user callbacks dispatched using the <code>G_KEEPERR</code> flag could also result in this warning. See <a href="perlcall.html#G_KEEPERR">&quot;G_KEEPERR&quot; in perlcall</a>.</p>

</dd>
<dt id="&lt;&gt;-should-be-quotes"><a class="permalink" href="perl561delta.html#%3C%3E-should-be-quotes">#</a><a id="should-be-quotes"></a>&lt;&gt; should be quotes</dt>
<dd>

<p>(F) You wrote <code>require &lt;file&gt;</code> when you should have written <code>require &#39;file&#39;</code>.</p>

</dd>
<dt id="Attempt-to-join-self"><a class="permalink" href="perl561delta.html#Attempt-to-join-self">#</a><a id="Attempt"></a>Attempt to join self</dt>
<dd>

<p>(F) You tried to join a thread from within itself, which is an impossible task. You may be joining the wrong thread, or you may need to move the join() to some other thread.</p>

</dd>
<dt id="Bad-evalled-substitution-pattern"><a class="permalink" href="perl561delta.html#Bad-evalled-substitution-pattern">#</a><a id="Bad"></a>Bad evalled substitution pattern</dt>
<dd>

<p>(F) You&#39;ve used the /e switch to evaluate the replacement for a substitution, but perl found a syntax error in the code to evaluate, most likely an unexpected right brace &#39;}&#39;.</p>

</dd>
<dt id="Bad-realloc()-ignored"><a class="permalink" href="perl561delta.html#Bad-realloc()-ignored">#</a><a id="Bad1"></a><a id="Bad-realloc-ignored"></a>Bad realloc() ignored</dt>
<dd>

<p>(S) An internal routine called realloc() on something that had never been malloc()ed in the first place. Mandatory, but can be disabled by setting environment variable <code>PERL_BADFREE</code> to 1.</p>

</dd>
<dt id="Bareword-found-in-conditional"><a class="permalink" href="perl561delta.html#Bareword-found-in-conditional">#</a><a id="Bareword"></a>Bareword found in conditional</dt>
<dd>

<p>(W bareword) The compiler found a bareword where it expected a conditional, which often indicates that an || or &amp;&amp; was parsed as part of the last argument of the previous construct, for example:</p>

<pre><code>open FOO || die;</code></pre>

<p>It may also indicate a misspelled constant that has been interpreted as a bareword:</p>

<pre><code>use constant TYPO =&gt; 1;
if (TYOP) { print &quot;foo&quot; }</code></pre>

<p>The <code>strict</code> pragma is useful in avoiding such errors.</p>

</dd>
<dt id="Binary-number-&gt;-0b11111111111111111111111111111111-non-portable"><a class="permalink" href="perl561delta.html#Binary-number-%3E-0b11111111111111111111111111111111-non-portable">#</a><a id="Binary1"></a><a id="Binary-number-0b11111111111111111111111111111111-non-portable"></a>Binary number &gt; 0b11111111111111111111111111111111 non-portable</dt>
<dd>

<p>(W portable) The binary number you specified is larger than 2**32-1 (4294967295) and therefore non-portable between systems. See <a href="perlport.html">perlport</a> for more on portability concerns.</p>

</dd>
<dt id="Bit-vector-size-&gt;-32-non-portable"><a class="permalink" href="perl561delta.html#Bit-vector-size-%3E-32-non-portable">#</a><a id="Bit1"></a><a id="Bit-vector-size-32-non-portable"></a>Bit vector size &gt; 32 non-portable</dt>
<dd>

<p>(W portable) Using bit vector sizes larger than 32 is non-portable.</p>

</dd>
<dt id="Buffer-overflow-in-prime_env_iter:-%s"><a class="permalink" href="perl561delta.html#Buffer-overflow-in-prime_env_iter:-%25s">#</a><a id="Buffer"></a><a id="Buffer-overflow-in-prime_env_iter:-s"></a>Buffer overflow in prime_env_iter: %s</dt>
<dd>

<p>(W internal) A warning peculiar to VMS. While Perl was preparing to iterate over %ENV, it encountered a logical name or symbol definition which was too long, so it was truncated to the string shown.</p>

</dd>
<dt id="Can&#39;t-check-filesystem-of-script-&quot;%s&quot;"><a class="permalink" href="perl561delta.html#Can&#39;t-check-filesystem-of-script-%22%25s%22">#</a><a id="Can"></a><a id="Cant-check-filesystem-of-script-s"></a>Can&#39;t check filesystem of script &quot;%s&quot;</dt>
<dd>

<p>(P) For some reason you can&#39;t check the filesystem of the script for nosuid.</p>

</dd>
<dt id="Can&#39;t-declare-class-for-non-scalar-%s-in-&quot;%s&quot;"><a class="permalink" href="perl561delta.html#Can&#39;t-declare-class-for-non-scalar-%25s-in-%22%25s%22">#</a><a id="Can1"></a><a id="Cant-declare-class-for-non-scalar-s-in-s"></a>Can&#39;t declare class for non-scalar %s in &quot;%s&quot;</dt>
<dd>

<p>(S) Currently, only scalar variables can declared with a specific class qualifier in a &quot;my&quot; or &quot;our&quot; declaration. The semantics may be extended for other types of variables in future.</p>

</dd>
<dt id="Can&#39;t-declare-%s-in-&quot;%s&quot;"><a class="permalink" href="perl561delta.html#Can&#39;t-declare-%25s-in-%22%25s%22">#</a><a id="Can2"></a><a id="Cant-declare-s-in-s"></a>Can&#39;t declare %s in &quot;%s&quot;</dt>
<dd>

<p>(F) Only scalar, array, and hash variables may be declared as &quot;my&quot; or &quot;our&quot; variables. They must have ordinary identifiers as names.</p>

</dd>
<dt id="Can&#39;t-ignore-signal-CHLD,-forcing-to-default"><a class="permalink" href="perl561delta.html#Can&#39;t-ignore-signal-CHLD,-forcing-to-default">#</a><a id="Can3"></a><a id="Cant-ignore-signal-CHLD-forcing-to-default"></a>Can&#39;t ignore signal CHLD, forcing to default</dt>
<dd>

<p>(W signal) Perl has detected that it is being run with the SIGCHLD signal (sometimes known as SIGCLD) disabled. Since disabling this signal will interfere with proper determination of exit status of child processes, Perl has reset the signal to its default value. This situation typically indicates that the parent program under which Perl may be running (e.g., cron) is being very careless.</p>

</dd>
<dt id="Can&#39;t-modify-non-lvalue-subroutine-call"><a class="permalink" href="perl561delta.html#Can&#39;t-modify-non-lvalue-subroutine-call">#</a><a id="Can4"></a><a id="Cant-modify-non-lvalue-subroutine-call"></a>Can&#39;t modify non-lvalue subroutine call</dt>
<dd>

<p>(F) Subroutines meant to be used in lvalue context should be declared as such, see <a href="perlsub.html#Lvalue-subroutines">&quot;Lvalue subroutines&quot; in perlsub</a>.</p>

</dd>
<dt id="Can&#39;t-read-CRTL-environ"><a class="permalink" href="perl561delta.html#Can&#39;t-read-CRTL-environ">#</a><a id="Can5"></a><a id="Cant-read-CRTL-environ"></a>Can&#39;t read CRTL environ</dt>
<dd>

<p>(S) A warning peculiar to VMS. Perl tried to read an element of %ENV from the CRTL&#39;s internal environment array and discovered the array was missing. You need to figure out where your CRTL misplaced its environ or define <i>PERL_ENV_TABLES</i> (see <a href="perlvms.html">perlvms</a>) so that environ is not searched.</p>

</dd>
<dt id="Can&#39;t-remove-%s:-%s,-skipping-file"><a class="permalink" href="perl561delta.html#Can&#39;t-remove-%25s:-%25s,-skipping-file">#</a><a id="Can6"></a><a id="Cant-remove-s:-s-skipping-file"></a>Can&#39;t remove %s: %s, skipping file</dt>
<dd>

<p>(S) You requested an inplace edit without creating a backup file. Perl was unable to remove the original file to replace it with the modified file. The file was left unmodified.</p>

</dd>
<dt id="Can&#39;t-return-%s-from-lvalue-subroutine"><a class="permalink" href="perl561delta.html#Can&#39;t-return-%25s-from-lvalue-subroutine">#</a><a id="Can7"></a><a id="Cant-return-s-from-lvalue-subroutine"></a>Can&#39;t return %s from lvalue subroutine</dt>
<dd>

<p>(F) Perl detected an attempt to return illegal lvalues (such as temporary or readonly values) from a subroutine used as an lvalue. This is not allowed.</p>

</dd>
<dt id="Can&#39;t-weaken-a-nonreference"><a class="permalink" href="perl561delta.html#Can&#39;t-weaken-a-nonreference">#</a><a id="Can8"></a><a id="Cant-weaken-a-nonreference"></a>Can&#39;t weaken a nonreference</dt>
<dd>

<p>(F) You attempted to weaken something that was not a reference. Only references can be weakened.</p>

</dd>
<dt id="Character-class-[:%s:]-unknown"><a class="permalink" href="perl561delta.html#Character-class-%5B:%25s:%5D-unknown">#</a><a id="Character"></a><a id="Character-class-:-s:-unknown"></a>Character class [:%s:] unknown</dt>
<dd>

<p>(F) The class in the character class [: :] syntax is unknown. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="Character-class-syntax-[%s]-belongs-inside-character-classes"><a class="permalink" href="perl561delta.html#Character-class-syntax-%5B%25s%5D-belongs-inside-character-classes">#</a><a id="Character1"></a><a id="Character-class-syntax-s-belongs-inside-character-classes"></a>Character class syntax [%s] belongs inside character classes</dt>
<dd>

<p>(W unsafe) The character class constructs [: :], [= =], and [. .] go <i>inside</i> character classes, the [] are part of the construct, for example: /[012[:alpha:]345]/. Note that [= =] and [. .] are not currently implemented; they are simply placeholders for future extensions.</p>

</dd>
<dt id="Constant-is-not-%s-reference"><a class="permalink" href="perl561delta.html#Constant-is-not-%25s-reference">#</a><a id="Constant"></a><a id="Constant-is-not-s-reference"></a>Constant is not %s reference</dt>
<dd>

<p>(F) A constant value (perhaps declared using the <code>use constant</code> pragma) is being dereferenced, but it amounts to the wrong type of reference. The message indicates the type of reference that was expected. This usually indicates a syntax error in dereferencing the constant value. See <a href="perlsub.html#Constant-Functions">&quot;Constant Functions&quot; in perlsub</a> and <a href="constant.html">constant</a>.</p>

</dd>
<dt id="constant(%s):-%s"><a class="permalink" href="perl561delta.html#constant(%25s):-%25s">#</a><a id="constant1"></a><a id="constant-s-:-s"></a>constant(%s): %s</dt>
<dd>

<p>(F) The parser found inconsistencies either while attempting to define an overloaded constant, or when trying to find the character name specified in the <code>\N{...}</code> escape. Perhaps you forgot to load the corresponding <code>overload</code> or <code>charnames</code> pragma? See <a href="charnames.html">charnames</a> and <a href="overload.html">overload</a>.</p>

</dd>
<dt id="CORE::%s-is-not-a-keyword"><a class="permalink" href="perl561delta.html#CORE::%25s-is-not-a-keyword">#</a><a id="CORE"></a><a id="CORE::-s-is-not-a-keyword"></a>CORE::%s is not a keyword</dt>
<dd>

<p>(F) The CORE:: namespace is reserved for Perl keywords.</p>

</dd>
<dt id="defined(@array)-is-deprecated"><a class="permalink" href="perl561delta.html#defined(@array)-is-deprecated">#</a><a id="defined"></a><a id="defined-array-is-deprecated"></a>defined(@array) is deprecated</dt>
<dd>

<p>(D) defined() is not usually useful on arrays because it checks for an undefined <i>scalar</i> value. If you want to see if the array is empty, just use <code>if (@array) { # not empty }</code> for example.</p>

</dd>
<dt id="defined(%hash)-is-deprecated"><a class="permalink" href="perl561delta.html#defined(%25hash)-is-deprecated">#</a><a id="defined1"></a><a id="defined-hash-is-deprecated"></a>defined(%hash) is deprecated</dt>
<dd>

<p>(D) defined() is not usually useful on hashes because it checks for an undefined <i>scalar</i> value. If you want to see if the hash is empty, just use <code>if (%hash) { # not empty }</code> for example.</p>

</dd>
<dt id="Did-not-produce-a-valid-header"><a class="permalink" href="perl561delta.html#Did-not-produce-a-valid-header">#</a><a id="Did"></a>Did not produce a valid header</dt>
<dd>

<p>See Server error.</p>

</dd>
<dt id="(Did-you-mean-&quot;local&quot;-instead-of-&quot;our&quot;?)"><a class="permalink" href="perl561delta.html#(Did-you-mean-%22local%22-instead-of-%22our%22?)">#</a><a id="Did-you-mean-local-instead-of-our"></a>(Did you mean &quot;local&quot; instead of &quot;our&quot;?)</dt>
<dd>

<p>(W misc) Remember that &quot;our&quot; does not localize the declared global variable. You have declared it again in the same lexical scope, which seems superfluous.</p>

</dd>
<dt id="Document-contains-no-data"><a class="permalink" href="perl561delta.html#Document-contains-no-data">#</a><a id="Document"></a>Document contains no data</dt>
<dd>

<p>See Server error.</p>

</dd>
<dt id="entering-effective-%s-failed"><a class="permalink" href="perl561delta.html#entering-effective-%25s-failed">#</a><a id="entering"></a><a id="entering-effective-s-failed"></a>entering effective %s failed</dt>
<dd>

<p>(F) While under the <code>use filetest</code> pragma, switching the real and effective uids or gids failed.</p>

</dd>
<dt id="false-[]-range-&quot;%s&quot;-in-regexp"><a class="permalink" href="perl561delta.html#false-%5B%5D-range-%22%25s%22-in-regexp">#</a><a id="false"></a><a id="false-range-s-in-regexp"></a>false [] range &quot;%s&quot; in regexp</dt>
<dd>

<p>(W regexp) A character class range must start and end at a literal character, not another character class like <code>\d</code> or <code>[:alpha:]</code>. The &quot;-&quot; in your false range is interpreted as a literal &quot;-&quot;. Consider quoting the &quot;-&quot;, &quot;\-&quot;. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="Filehandle-%s-opened-only-for-output"><a class="permalink" href="perl561delta.html#Filehandle-%25s-opened-only-for-output">#</a><a id="Filehandle"></a><a id="Filehandle-s-opened-only-for-output"></a>Filehandle %s opened only for output</dt>
<dd>

<p>(W io) You tried to read from a filehandle opened only for writing. If you intended it to be a read/write filehandle, you needed to open it with &quot;+&lt;&quot; or &quot;+&gt;&quot; or &quot;+&gt;&gt;&quot; instead of with &quot;&lt;&quot; or nothing. If you intended only to read from the file, use &quot;&lt;&quot;. See <a href="perlfunc.html#open">&quot;open&quot; in perlfunc</a>.</p>

</dd>
<dt id="flock()-on-closed-filehandle-%s"><a class="permalink" href="perl561delta.html#flock()-on-closed-filehandle-%25s">#</a><a id="flock"></a><a id="flock-on-closed-filehandle-s"></a>flock() on closed filehandle %s</dt>
<dd>

<p>(W closed) The filehandle you&#39;re attempting to flock() got itself closed some time before now. Check your logic flow. flock() operates on filehandles. Are you attempting to call flock() on a dirhandle by the same name?</p>

</dd>
<dt id="Global-symbol-&quot;%s&quot;-requires-explicit-package-name"><a class="permalink" href="perl561delta.html#Global-symbol-%22%25s%22-requires-explicit-package-name">#</a><a id="Global"></a><a id="Global-symbol-s-requires-explicit-package-name"></a>Global symbol &quot;%s&quot; requires explicit package name</dt>
<dd>

<p>(F) You&#39;ve said &quot;use strict vars&quot;, which indicates that all variables must either be lexically scoped (using &quot;my&quot;), declared beforehand using &quot;our&quot;, or explicitly qualified to say which package the global variable is in (using &quot;::&quot;).</p>

</dd>
<dt id="Hexadecimal-number-&gt;-0xffffffff-non-portable"><a class="permalink" href="perl561delta.html#Hexadecimal-number-%3E-0xffffffff-non-portable">#</a><a id="Hexadecimal"></a><a id="Hexadecimal-number-0xffffffff-non-portable"></a>Hexadecimal number &gt; 0xffffffff non-portable</dt>
<dd>

<p>(W portable) The hexadecimal number you specified is larger than 2**32-1 (4294967295) and therefore non-portable between systems. See <a href="perlport.html">perlport</a> for more on portability concerns.</p>

</dd>
<dt id="Ill-formed-CRTL-environ-value-&quot;%s&quot;"><a class="permalink" href="perl561delta.html#Ill-formed-CRTL-environ-value-%22%25s%22">#</a><a id="Ill"></a><a id="Ill-formed-CRTL-environ-value-s"></a>Ill-formed CRTL environ value &quot;%s&quot;</dt>
<dd>

<p>(W internal) A warning peculiar to VMS. Perl tried to read the CRTL&#39;s internal environ array, and encountered an element without the <code>=</code> delimiter used to separate keys from values. The element is ignored.</p>

</dd>
<dt id="Ill-formed-message-in-prime_env_iter:-|%s|"><a class="permalink" href="perl561delta.html#Ill-formed-message-in-prime_env_iter:-%7C%25s%7C">#</a><a id="Ill1"></a><a id="Ill-formed-message-in-prime_env_iter:-s"></a>Ill-formed message in prime_env_iter: |%s|</dt>
<dd>

<p>(W internal) A warning peculiar to VMS. Perl tried to read a logical name or CLI symbol definition when preparing to iterate over %ENV, and didn&#39;t see the expected delimiter between key and value, so the line was ignored.</p>

</dd>
<dt id="Illegal-binary-digit-%s"><a class="permalink" href="perl561delta.html#Illegal-binary-digit-%25s">#</a><a id="Illegal"></a><a id="Illegal-binary-digit-s"></a>Illegal binary digit %s</dt>
<dd>

<p>(F) You used a digit other than 0 or 1 in a binary number.</p>

</dd>
<dt id="Illegal-binary-digit-%s-ignored"><a class="permalink" href="perl561delta.html#Illegal-binary-digit-%25s-ignored">#</a><a id="Illegal1"></a><a id="Illegal-binary-digit-s-ignored"></a>Illegal binary digit %s ignored</dt>
<dd>

<p>(W digit) You may have tried to use a digit other than 0 or 1 in a binary number. Interpretation of the binary number stopped before the offending digit.</p>

</dd>
<dt id="Illegal-number-of-bits-in-vec"><a class="permalink" href="perl561delta.html#Illegal-number-of-bits-in-vec">#</a><a id="Illegal2"></a>Illegal number of bits in vec</dt>
<dd>

<p>(F) The number of bits in vec() (the third argument) must be a power of two from 1 to 32 (or 64, if your platform supports that).</p>

</dd>
<dt id="Integer-overflow-in-%s-number"><a class="permalink" href="perl561delta.html#Integer-overflow-in-%25s-number">#</a><a id="Integer"></a><a id="Integer-overflow-in-s-number"></a>Integer overflow in %s number</dt>
<dd>

<p>(W overflow) The hexadecimal, octal or binary number you have specified either as a literal or as an argument to hex() or oct() is too big for your architecture, and has been converted to a floating point number. On a 32-bit architecture the largest hexadecimal, octal or binary number representable without overflow is 0xFFFFFFFF, 037777777777, or 0b11111111111111111111111111111111 respectively. Note that Perl transparently promotes all numbers to a floating point representation internally--subject to loss of precision errors in subsequent operations.</p>

</dd>
<dt id="Invalid-%s-attribute:-%s"><a class="permalink" href="perl561delta.html#Invalid-%25s-attribute:-%25s">#</a><a id="Invalid"></a><a id="Invalid-s-attribute:-s"></a>Invalid %s attribute: %s</dt>
<dd>

<p>The indicated attribute for a subroutine or variable was not recognized by Perl or by a user-supplied handler. See <a href="attributes.html">attributes</a>.</p>

</dd>
<dt id="Invalid-%s-attributes:-%s"><a class="permalink" href="perl561delta.html#Invalid-%25s-attributes:-%25s">#</a><a id="Invalid1"></a><a id="Invalid-s-attributes:-s"></a>Invalid %s attributes: %s</dt>
<dd>

<p>The indicated attributes for a subroutine or variable were not recognized by Perl or by a user-supplied handler. See <a href="attributes.html">attributes</a>.</p>

</dd>
<dt id="invalid-[]-range-&quot;%s&quot;-in-regexp"><a class="permalink" href="perl561delta.html#invalid-%5B%5D-range-%22%25s%22-in-regexp">#</a><a id="invalid"></a><a id="invalid-range-s-in-regexp"></a>invalid [] range &quot;%s&quot; in regexp</dt>
<dd>

<p>The offending range is now explicitly displayed.</p>

</dd>
<dt id="Invalid-separator-character-%s-in-attribute-list"><a class="permalink" href="perl561delta.html#Invalid-separator-character-%25s-in-attribute-list">#</a><a id="Invalid2"></a><a id="Invalid-separator-character-s-in-attribute-list"></a>Invalid separator character %s in attribute list</dt>
<dd>

<p>(F) Something other than a colon or whitespace was seen between the elements of an attribute list. If the previous attribute had a parenthesised parameter list, perhaps that list was terminated too soon. See <a href="attributes.html">attributes</a>.</p>

</dd>
<dt id="Invalid-separator-character-%s-in-subroutine-attribute-list"><a class="permalink" href="perl561delta.html#Invalid-separator-character-%25s-in-subroutine-attribute-list">#</a><a id="Invalid3"></a><a id="Invalid-separator-character-s-in-subroutine-attribute-list"></a>Invalid separator character %s in subroutine attribute list</dt>
<dd>

<p>(F) Something other than a colon or whitespace was seen between the elements of a subroutine attribute list. If the previous attribute had a parenthesised parameter list, perhaps that list was terminated too soon.</p>

</dd>
<dt id="leaving-effective-%s-failed"><a class="permalink" href="perl561delta.html#leaving-effective-%25s-failed">#</a><a id="leaving"></a><a id="leaving-effective-s-failed"></a>leaving effective %s failed</dt>
<dd>

<p>(F) While under the <code>use filetest</code> pragma, switching the real and effective uids or gids failed.</p>

</dd>
<dt id="Lvalue-subs-returning-%s-not-implemented-yet"><a class="permalink" href="perl561delta.html#Lvalue-subs-returning-%25s-not-implemented-yet">#</a><a id="Lvalue2"></a><a id="Lvalue-subs-returning-s-not-implemented-yet"></a>Lvalue subs returning %s not implemented yet</dt>
<dd>

<p>(F) Due to limitations in the current implementation, array and hash values cannot be returned in subroutines used in lvalue context. See <a href="perlsub.html#Lvalue-subroutines">&quot;Lvalue subroutines&quot; in perlsub</a>.</p>

</dd>
<dt id="Method-%s-not-permitted"><a class="permalink" href="perl561delta.html#Method-%25s-not-permitted">#</a><a id="Method"></a><a id="Method-s-not-permitted"></a>Method %s not permitted</dt>
<dd>

<p>See Server error.</p>

</dd>
<dt id="Missing-%sbrace%s-on-\N{}"><a class="permalink" href="perl561delta.html#Missing-%25sbrace%25s-on-%5CN%7B%7D">#</a><a id="Missing"></a><a id="Missing-sbrace-s-on-N"></a>Missing %sbrace%s on \N{}</dt>
<dd>

<p>(F) Wrong syntax of character name literal <code>\N{charname}</code> within double-quotish context.</p>

</dd>
<dt id="Missing-command-in-piped-open"><a class="permalink" href="perl561delta.html#Missing-command-in-piped-open">#</a><a id="Missing1"></a>Missing command in piped open</dt>
<dd>

<p>(W pipe) You used the <code>open(FH, &quot;| command&quot;)</code> or <code>open(FH, &quot;command |&quot;)</code> construction, but the command was missing or blank.</p>

</dd>
<dt id="Missing-name-in-&quot;my-sub&quot;"><a class="permalink" href="perl561delta.html#Missing-name-in-%22my-sub%22">#</a><a id="Missing2"></a><a id="Missing-name-in-my-sub"></a>Missing name in &quot;my sub&quot;</dt>
<dd>

<p>(F) The reserved syntax for lexically scoped subroutines requires that they have a name with which they can be found.</p>

</dd>
<dt id="No-%s-specified-for-%c"><a class="permalink" href="perl561delta.html#No-%25s-specified-for-%25c">#</a><a id="No"></a><a id="No-s-specified-for---c"></a>No %s specified for -%c</dt>
<dd>

<p>(F) The indicated command line switch needs a mandatory argument, but you haven&#39;t specified one.</p>

</dd>
<dt id="No-package-name-allowed-for-variable-%s-in-&quot;our&quot;"><a class="permalink" href="perl561delta.html#No-package-name-allowed-for-variable-%25s-in-%22our%22">#</a><a id="No1"></a><a id="No-package-name-allowed-for-variable-s-in-our"></a>No package name allowed for variable %s in &quot;our&quot;</dt>
<dd>

<p>(F) Fully qualified variable names are not allowed in &quot;our&quot; declarations, because that doesn&#39;t make much sense under existing semantics. Such syntax is reserved for future extensions.</p>

</dd>
<dt id="No-space-allowed-after-%c"><a class="permalink" href="perl561delta.html#No-space-allowed-after-%25c">#</a><a id="No2"></a><a id="No-space-allowed-after---c"></a>No space allowed after -%c</dt>
<dd>

<p>(F) The argument to the indicated command line switch must follow immediately after the switch, without intervening spaces.</p>

</dd>
<dt id="no-UTC-offset-information;-assuming-local-time-is-UTC"><a class="permalink" href="perl561delta.html#no-UTC-offset-information;-assuming-local-time-is-UTC">#</a><a id="no1"></a><a id="no-UTC-offset-information-assuming-local-time-is-UTC"></a>no UTC offset information; assuming local time is UTC</dt>
<dd>

<p>(S) A warning peculiar to VMS. Perl was unable to find the local timezone offset, so it&#39;s assuming that local system time is equivalent to UTC. If it&#39;s not, define the logical name <i>SYS$TIMEZONE_DIFFERENTIAL</i> to translate to the number of seconds which need to be added to UTC to get local time.</p>

</dd>
<dt id="Octal-number-&gt;-037777777777-non-portable"><a class="permalink" href="perl561delta.html#Octal-number-%3E-037777777777-non-portable">#</a><a id="Octal"></a><a id="Octal-number-037777777777-non-portable"></a>Octal number &gt; 037777777777 non-portable</dt>
<dd>

<p>(W portable) The octal number you specified is larger than 2**32-1 (4294967295) and therefore non-portable between systems. See <a href="perlport.html">perlport</a> for more on portability concerns.</p>

<p>See also <a href="perlport.html">perlport</a> for writing portable code.</p>

</dd>
<dt id="panic:-del_backref"><a class="permalink" href="perl561delta.html#panic:-del_backref">#</a><a id="panic"></a>panic: del_backref</dt>
<dd>

<p>(P) Failed an internal consistency check while trying to reset a weak reference.</p>

</dd>
<dt id="panic:-kid-popen-errno-read"><a class="permalink" href="perl561delta.html#panic:-kid-popen-errno-read">#</a><a id="panic1"></a>panic: kid popen errno read</dt>
<dd>

<p>(F) forked child returned an incomprehensible message about its errno.</p>

</dd>
<dt id="panic:-magic_killbackrefs"><a class="permalink" href="perl561delta.html#panic:-magic_killbackrefs">#</a><a id="panic2"></a>panic: magic_killbackrefs</dt>
<dd>

<p>(P) Failed an internal consistency check while trying to reset all weak references to an object.</p>

</dd>
<dt id="Parentheses-missing-around-&quot;%s&quot;-list"><a class="permalink" href="perl561delta.html#Parentheses-missing-around-%22%25s%22-list">#</a><a id="Parentheses"></a><a id="Parentheses-missing-around-s-list"></a>Parentheses missing around &quot;%s&quot; list</dt>
<dd>

<p>(W parenthesis) You said something like</p>

<pre><code>my $foo, $bar = @_;</code></pre>

<p>when you meant</p>

<pre><code>my ($foo, $bar) = @_;</code></pre>

<p>Remember that &quot;my&quot;, &quot;our&quot;, and &quot;local&quot; bind tighter than comma.</p>

</dd>
<dt id="Possible-unintended-interpolation-of-%s-in-string"><a class="permalink" href="perl561delta.html#Possible-unintended-interpolation-of-%25s-in-string">#</a><a id="Possible"></a><a id="Possible-unintended-interpolation-of-s-in-string"></a>Possible unintended interpolation of %s in string</dt>
<dd>

<p>(W ambiguous) It used to be that Perl would try to guess whether you wanted an array interpolated or a literal @. It no longer does this; arrays are now <i>always</i> interpolated into strings. This means that if you try something like:</p>

<pre><code>print &quot;fred@example.com&quot;;</code></pre>

<p>and the array <code>@example</code> doesn&#39;t exist, Perl is going to print <code>fred.com</code>, which is probably not what you wanted. To get a literal <code>@</code> sign in a string, put a backslash before it, just as you would to get a literal <code>$</code> sign.</p>

</dd>
<dt id="Possible-Y2K-bug:-%s"><a class="permalink" href="perl561delta.html#Possible-Y2K-bug:-%25s">#</a><a id="Possible1"></a><a id="Possible-Y2K-bug:-s"></a>Possible Y2K bug: %s</dt>
<dd>

<p>(W y2k) You are concatenating the number 19 with another number, which could be a potential Year 2000 problem.</p>

</dd>
<dt id="pragma-&quot;attrs&quot;-is-deprecated,-use-&quot;sub-NAME-:-ATTRS&quot;-instead"><a class="permalink" href="perl561delta.html#pragma-%22attrs%22-is-deprecated,-use-%22sub-NAME-:-ATTRS%22-instead">#</a><a id="pragma"></a><a id="pragma-attrs-is-deprecated-use-sub-NAME-:-ATTRS-instead"></a>pragma &quot;attrs&quot; is deprecated, use &quot;sub NAME : ATTRS&quot; instead</dt>
<dd>

<p>(W deprecated) You have written something like this:</p>

<pre><code>sub doit
{
    use attrs qw(locked);
}</code></pre>

<p>You should use the new declaration syntax instead.</p>

<pre><code>sub doit : locked
{
    ...</code></pre>

<p>The <code>use attrs</code> pragma is now obsolete, and is only provided for backward-compatibility. See <a href="perlsub.html#Subroutine-Attributes">&quot;Subroutine Attributes&quot; in perlsub</a>.</p>

</dd>
<dt id="Premature-end-of-script-headers"><a class="permalink" href="perl561delta.html#Premature-end-of-script-headers">#</a><a id="Premature"></a>Premature end of script headers</dt>
<dd>

<p>See Server error.</p>

</dd>
<dt id="Repeat-count-in-pack-overflows"><a class="permalink" href="perl561delta.html#Repeat-count-in-pack-overflows">#</a><a id="Repeat"></a>Repeat count in pack overflows</dt>
<dd>

<p>(F) You can&#39;t specify a repeat count so large that it overflows your signed integers. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="Repeat-count-in-unpack-overflows"><a class="permalink" href="perl561delta.html#Repeat-count-in-unpack-overflows">#</a><a id="Repeat1"></a>Repeat count in unpack overflows</dt>
<dd>

<p>(F) You can&#39;t specify a repeat count so large that it overflows your signed integers. See <a href="perlfunc.html#unpack">&quot;unpack&quot; in perlfunc</a>.</p>

</dd>
<dt id="realloc()-of-freed-memory-ignored"><a class="permalink" href="perl561delta.html#realloc()-of-freed-memory-ignored">#</a><a id="realloc"></a><a id="realloc-of-freed-memory-ignored"></a>realloc() of freed memory ignored</dt>
<dd>

<p>(S) An internal routine called realloc() on something that had already been freed.</p>

</dd>
<dt id="Reference-is-already-weak"><a class="permalink" href="perl561delta.html#Reference-is-already-weak">#</a><a id="Reference"></a>Reference is already weak</dt>
<dd>

<p>(W misc) You have attempted to weaken a reference that is already weak. Doing so has no effect.</p>

</dd>
<dt id="setpgrp-can&#39;t-take-arguments"><a class="permalink" href="perl561delta.html#setpgrp-can&#39;t-take-arguments">#</a><a id="setpgrp"></a><a id="setpgrp-cant-take-arguments"></a>setpgrp can&#39;t take arguments</dt>
<dd>

<p>(F) Your system has the setpgrp() from BSD 4.2, which takes no arguments, unlike POSIX setpgid(), which takes a process ID and process group ID.</p>

</dd>
<dt id="Strange-*+?{}-on-zero-length-expression"><a class="permalink" href="perl561delta.html#Strange-*+?%7B%7D-on-zero-length-expression">#</a><a id="Strange"></a><a id="Strange-on-zero-length-expression"></a>Strange *+?{} on zero-length expression</dt>
<dd>

<p>(W regexp) You applied a regular expression quantifier in a place where it makes no sense, such as on a zero-width assertion. Try putting the quantifier inside the assertion instead. For example, the way to match &quot;abc&quot; provided that it is followed by three repetitions of &quot;xyz&quot; is <code>/abc(?=(?:xyz){3})/</code>, not <code>/abc(?=xyz){3}/</code>.</p>

</dd>
<dt id="switching-effective-%s-is-not-implemented"><a class="permalink" href="perl561delta.html#switching-effective-%25s-is-not-implemented">#</a><a id="switching"></a><a id="switching-effective-s-is-not-implemented"></a>switching effective %s is not implemented</dt>
<dd>

<p>(F) While under the <code>use filetest</code> pragma, we cannot switch the real and effective uids or gids.</p>

</dd>
<dt id="This-Perl-can&#39;t-reset-CRTL-environ-elements-(%s)"><a class="permalink" href="perl561delta.html#This-Perl-can&#39;t-reset-CRTL-environ-elements-(%25s)">#</a><a id="This"></a><a id="This-Perl-cant-reset-CRTL-environ-elements-s"></a>This Perl can&#39;t reset CRTL environ elements (%s)</dt>
<dd>

</dd>
<dt id="This-Perl-can&#39;t-set-CRTL-environ-elements-(%s=%s)"><a class="permalink" href="perl561delta.html#This-Perl-can&#39;t-set-CRTL-environ-elements-(%25s=%25s)">#</a><a id="This1"></a><a id="This-Perl-cant-set-CRTL-environ-elements-s-s"></a>This Perl can&#39;t set CRTL environ elements (%s=%s)</dt>
<dd>

<p>(W internal) Warnings peculiar to VMS. You tried to change or delete an element of the CRTL&#39;s internal environ array, but your copy of Perl wasn&#39;t built with a CRTL that contained the setenv() function. You&#39;ll need to rebuild Perl with a CRTL that does, or redefine <i>PERL_ENV_TABLES</i> (see <a href="perlvms.html">perlvms</a>) so that the environ array isn&#39;t the target of the change to %ENV which produced the warning.</p>

</dd>
<dt id="Too-late-to-run-%s-block"><a class="permalink" href="perl561delta.html#Too-late-to-run-%25s-block">#</a><a id="Too"></a><a id="Too-late-to-run-s-block"></a>Too late to run %s block</dt>
<dd>

<p>(W void) A CHECK or INIT block is being defined during run time proper, when the opportunity to run them has already passed. Perhaps you are loading a file with <code>require</code> or <code>do</code> when you should be using <code>use</code> instead. Or perhaps you should put the <code>require</code> or <code>do</code> inside a BEGIN block.</p>

</dd>
<dt id="Unknown-open()-mode-&#39;%s&#39;"><a class="permalink" href="perl561delta.html#Unknown-open()-mode-&#39;%25s&#39;">#</a><a id="Unknown"></a><a id="Unknown-open-mode-s"></a>Unknown open() mode &#39;%s&#39;</dt>
<dd>

<p>(F) The second argument of 3-argument open() is not among the list of valid modes: <code>&lt;</code>, <code>&gt;</code>, <code>&gt;&gt;</code>, <code>+&lt;</code>, <code>+&gt;</code>, <code>+&gt;&gt;</code>, <code>-|</code>, <code>|-</code>.</p>

</dd>
<dt id="Unknown-process-%x-sent-message-to-prime_env_iter:-%s"><a class="permalink" href="perl561delta.html#Unknown-process-%25x-sent-message-to-prime_env_iter:-%25s">#</a><a id="Unknown1"></a><a id="Unknown-process-x-sent-message-to-prime_env_iter:-s"></a>Unknown process %x sent message to prime_env_iter: %s</dt>
<dd>

<p>(P) An error peculiar to VMS. Perl was reading values for %ENV before iterating over it, and someone else stuck a message in the stream of data Perl expected. Someone&#39;s very confused, or perhaps trying to subvert Perl&#39;s population of %ENV for nefarious purposes.</p>

</dd>
<dt id="Unrecognized-escape-\\%c-passed-through"><a class="permalink" href="perl561delta.html#Unrecognized-escape-%5C%5C%25c-passed-through">#</a><a id="Unrecognized"></a><a id="Unrecognized-escape-c-passed-through"></a>Unrecognized escape \\%c passed through</dt>
<dd>

<p>(W misc) You used a backslash-character combination which is not recognized by Perl. The character was understood literally.</p>

</dd>
<dt id="Unterminated-attribute-parameter-in-attribute-list"><a class="permalink" href="perl561delta.html#Unterminated-attribute-parameter-in-attribute-list">#</a><a id="Unterminated"></a>Unterminated attribute parameter in attribute list</dt>
<dd>

<p>(F) The lexer saw an opening (left) parenthesis character while parsing an attribute list, but the matching closing (right) parenthesis character was not found. You may need to add (or remove) a backslash character to get your parentheses to balance. See <a href="attributes.html">attributes</a>.</p>

</dd>
<dt id="Unterminated-attribute-list"><a class="permalink" href="perl561delta.html#Unterminated-attribute-list">#</a><a id="Unterminated1"></a>Unterminated attribute list</dt>
<dd>

<p>(F) The lexer found something other than a simple identifier at the start of an attribute, and it wasn&#39;t a semicolon or the start of a block. Perhaps you terminated the parameter list of the previous attribute too soon. See <a href="attributes.html">attributes</a>.</p>

</dd>
<dt id="Unterminated-attribute-parameter-in-subroutine-attribute-list"><a class="permalink" href="perl561delta.html#Unterminated-attribute-parameter-in-subroutine-attribute-list">#</a><a id="Unterminated2"></a>Unterminated attribute parameter in subroutine attribute list</dt>
<dd>

<p>(F) The lexer saw an opening (left) parenthesis character while parsing a subroutine attribute list, but the matching closing (right) parenthesis character was not found. You may need to add (or remove) a backslash character to get your parentheses to balance.</p>

</dd>
<dt id="Unterminated-subroutine-attribute-list"><a class="permalink" href="perl561delta.html#Unterminated-subroutine-attribute-list">#</a><a id="Unterminated3"></a>Unterminated subroutine attribute list</dt>
<dd>

<p>(F) The lexer found something other than a simple identifier at the start of a subroutine attribute, and it wasn&#39;t a semicolon or the start of a block. Perhaps you terminated the parameter list of the previous attribute too soon.</p>

</dd>
<dt id="Value-of-CLI-symbol-&quot;%s&quot;-too-long"><a class="permalink" href="perl561delta.html#Value-of-CLI-symbol-%22%25s%22-too-long">#</a><a id="Value"></a><a id="Value-of-CLI-symbol-s-too-long"></a>Value of CLI symbol &quot;%s&quot; too long</dt>
<dd>

<p>(W misc) A warning peculiar to VMS. Perl tried to read the value of an %ENV element from a CLI symbol table, and found a resultant string longer than 1024 characters. The return value has been truncated to 1024 characters.</p>

</dd>
<dt id="Version-number-must-be-a-constant-number"><a class="permalink" href="perl561delta.html#Version-number-must-be-a-constant-number">#</a><a id="Version"></a>Version number must be a constant number</dt>
<dd>

<p>(P) The attempt to translate a <code>use Module n.n LIST</code> statement into its equivalent <code>BEGIN</code> block found an internal inconsistency with the version number.</p>

</dd>
</dl>

<h1 id="New-tests"><a class="permalink" href="perl561delta.html#New-tests">#</a><a id="New5"></a>New tests</h1>

<dl>

<dt id="lib/attrs"><a class="permalink" href="perl561delta.html#lib/attrs">#</a><a id="lib1"></a><a id="lib-attrs"></a>lib/attrs</dt>
<dd>

<p>Compatibility tests for <code>sub : attrs</code> vs the older <code>use attrs</code>.</p>

</dd>
<dt id="lib/env"><a class="permalink" href="perl561delta.html#lib/env">#</a><a id="lib2"></a><a id="lib-env"></a>lib/env</dt>
<dd>

<p>Tests for new environment scalar capability (e.g., <code>use Env qw($BAR);</code>).</p>

</dd>
<dt id="lib/env-array"><a class="permalink" href="perl561delta.html#lib/env-array">#</a><a id="lib3"></a><a id="lib-env-array"></a>lib/env-array</dt>
<dd>

<p>Tests for new environment array capability (e.g., <code>use Env qw(@PATH);</code>).</p>

</dd>
<dt id="lib/io_const"><a class="permalink" href="perl561delta.html#lib/io_const">#</a><a id="lib4"></a><a id="lib-io_const"></a>lib/io_const</dt>
<dd>

<p>IO constants (SEEK_*, _IO*).</p>

</dd>
<dt id="lib/io_dir"><a class="permalink" href="perl561delta.html#lib/io_dir">#</a><a id="lib5"></a><a id="lib-io_dir"></a>lib/io_dir</dt>
<dd>

<p>Directory-related IO methods (new, read, close, rewind, tied delete).</p>

</dd>
<dt id="lib/io_multihomed"><a class="permalink" href="perl561delta.html#lib/io_multihomed">#</a><a id="lib6"></a><a id="lib-io_multihomed"></a>lib/io_multihomed</dt>
<dd>

<p>INET sockets with multi-homed hosts.</p>

</dd>
<dt id="lib/io_poll"><a class="permalink" href="perl561delta.html#lib/io_poll">#</a><a id="lib7"></a><a id="lib-io_poll"></a>lib/io_poll</dt>
<dd>

<p>IO poll().</p>

</dd>
<dt id="lib/io_unix"><a class="permalink" href="perl561delta.html#lib/io_unix">#</a><a id="lib8"></a><a id="lib-io_unix"></a>lib/io_unix</dt>
<dd>

<p>UNIX sockets.</p>

</dd>
<dt id="op/attrs"><a class="permalink" href="perl561delta.html#op/attrs">#</a><a id="op"></a><a id="op-attrs"></a>op/attrs</dt>
<dd>

<p>Regression tests for <code>my ($x,@y,%z) : attrs</code> and &lt;sub : attrs&gt;.</p>

</dd>
<dt id="op/filetest"><a class="permalink" href="perl561delta.html#op/filetest">#</a><a id="op1"></a><a id="op-filetest"></a>op/filetest</dt>
<dd>

<p>File test operators.</p>

</dd>
<dt id="op/lex_assign"><a class="permalink" href="perl561delta.html#op/lex_assign">#</a><a id="op2"></a><a id="op-lex_assign"></a>op/lex_assign</dt>
<dd>

<p>Verify operations that access pad objects (lexicals and temporaries).</p>

</dd>
<dt id="op/exists_sub"><a class="permalink" href="perl561delta.html#op/exists_sub">#</a><a id="op3"></a><a id="op-exists_sub"></a>op/exists_sub</dt>
<dd>

<p>Verify <code>exists &amp;sub</code> operations.</p>

</dd>
</dl>

<h1 id="Incompatible-Changes"><a class="permalink" href="perl561delta.html#Incompatible-Changes">#</a><a id="Incompatible"></a>Incompatible Changes</h1>

<h2 id="Perl-Source-Incompatibilities"><a class="permalink" href="perl561delta.html#Perl-Source-Incompatibilities">#</a><a id="Perl"></a>Perl Source Incompatibilities</h2>

<p>Beware that any new warnings that have been added or old ones that have been enhanced are <b>not</b> considered incompatible changes.</p>

<p>Since all new warnings must be explicitly requested via the <code>-w</code> switch or the <code>warnings</code> pragma, it is ultimately the programmer&#39;s responsibility to ensure that warnings are enabled judiciously.</p>

<dl>

<dt id="CHECK-is-a-new-keyword"><a class="permalink" href="perl561delta.html#CHECK-is-a-new-keyword">#</a><a id="CHECK"></a>CHECK is a new keyword</dt>
<dd>

<p>All subroutine definitions named CHECK are now special. See <code>/&quot;Support for CHECK blocks&quot;</code> for more information.</p>

</dd>
<dt id="Treatment-of-list-slices-of-undef-has-changed"><a class="permalink" href="perl561delta.html#Treatment-of-list-slices-of-undef-has-changed">#</a><a id="Treatment"></a>Treatment of list slices of undef has changed</dt>
<dd>

<p>There is a potential incompatibility in the behavior of list slices that are comprised entirely of undefined values. See <a href="perl561delta.html#Behavior-of-list-slices-is-more-consistent">&quot;Behavior of list slices is more consistent&quot;</a>.</p>

</dd>
<dt id="Format-of-$English::PERL_VERSION-is-different"><a class="permalink" href="perl561delta.html#Format-of-$English::PERL_VERSION-is-different">#</a><a id="Format"></a><a id="Format-of-English::PERL_VERSION-is-different"></a>Format of $English::PERL_VERSION is different</dt>
<dd>

<p>The English module now sets $PERL_VERSION to $^V (a string value) rather than <code>$]</code> (a numeric value). This is a potential incompatibility. Send us a report via perlbug if you are affected by this.</p>

<p>See <a href="perl561delta.html#Improved-Perl-version-numbering-system">&quot;Improved Perl version numbering system&quot;</a> for the reasons for this change.</p>

</dd>
<dt id="Literals-of-the-form-1.2.3-parse-differently"><a class="permalink" href="perl561delta.html#Literals-of-the-form-1.2.3-parse-differently">#</a><a id="Literals"></a>Literals of the form <code>1.2.3</code> parse differently</dt>
<dd>

<p>Previously, numeric literals with more than one dot in them were interpreted as a floating point number concatenated with one or more numbers. Such &quot;numbers&quot; are now parsed as strings composed of the specified ordinals.</p>

<p>For example, <code>print 97.98.99</code> used to output <code>97.9899</code> in earlier versions, but now prints <code>abc</code>.</p>

<p>See <a href="perl561delta.html#Support-for-strings-represented-as-a-vector-of-ordinals">&quot;Support for strings represented as a vector of ordinals&quot;</a>.</p>

</dd>
<dt id="Possibly-changed-pseudo-random-number-generator"><a class="permalink" href="perl561delta.html#Possibly-changed-pseudo-random-number-generator">#</a><a id="Possibly"></a>Possibly changed pseudo-random number generator</dt>
<dd>

<p>Perl programs that depend on reproducing a specific set of pseudo-random numbers may now produce different output due to improvements made to the rand() builtin. You can use <code>sh Configure -Drandfunc=rand</code> to obtain the old behavior.</p>

<p>See <a href="perl561delta.html#Better-pseudo-random-number-generator">&quot;Better pseudo-random number generator&quot;</a>.</p>

</dd>
<dt id="Hashing-function-for-hash-keys-has-changed"><a class="permalink" href="perl561delta.html#Hashing-function-for-hash-keys-has-changed">#</a><a id="Hashing"></a>Hashing function for hash keys has changed</dt>
<dd>

<p>Even though Perl hashes are not order preserving, the apparently random order encountered when iterating on the contents of a hash is actually determined by the hashing algorithm used. Improvements in the algorithm may yield a random order that is <b>different</b> from that of previous versions, especially when iterating on hashes.</p>

<p>See <a href="perl561delta.html#Better-worst-case-behavior-of-hashes">&quot;Better worst-case behavior of hashes&quot;</a> for additional information.</p>

</dd>
<dt id="undef-fails-on-read-only-values"><a class="permalink" href="perl561delta.html#undef-fails-on-read-only-values">#</a><a id="undef"></a><code>undef</code> fails on read only values</dt>
<dd>

<p>Using the <code>undef</code> operator on a readonly value (such as $1) has the same effect as assigning <code>undef</code> to the readonly value--it throws an exception.</p>

</dd>
<dt id="Close-on-exec-bit-may-be-set-on-pipe-and-socket-handles"><a class="permalink" href="perl561delta.html#Close-on-exec-bit-may-be-set-on-pipe-and-socket-handles">#</a><a id="Close"></a>Close-on-exec bit may be set on pipe and socket handles</dt>
<dd>

<p>Pipe and socket handles are also now subject to the close-on-exec behavior determined by the special variable $^F.</p>

<p>See <a href="perl561delta.html#More-consistent-close-on-exec-behavior">&quot;More consistent close-on-exec behavior&quot;</a>.</p>

</dd>
<dt id="Writing-&quot;$$1&quot;-to-mean-&quot;${$}1&quot;-is-unsupported"><a class="permalink" href="perl561delta.html#Writing-%22$$1%22-to-mean-%22$%7B$%7D1%22-is-unsupported">#</a><a id="Writing"></a><a id="Writing-1-to-mean-1-is-unsupported"></a>Writing <code>&quot;$$1&quot;</code> to mean <code>&quot;${$}1&quot;</code> is unsupported</dt>
<dd>

<p>Perl 5.004 deprecated the interpretation of <code>$$1</code> and similar within interpolated strings to mean <code>$$ . &quot;1&quot;</code>, but still allowed it.</p>

<p>In Perl 5.6.0 and later, <code>&quot;$$1&quot;</code> always means <code>&quot;${$1}&quot;</code>.</p>

</dd>
<dt id="delete(),-each(),-values()-and-\(%h)"><a class="permalink" href="perl561delta.html#delete(),-each(),-values()-and-%5C(%25h)">#</a><a id="delete1"></a><a id="delete-each-values-and-h"></a>delete(), each(), values() and <code>\(%h)</code></dt>
<dd>

<p>operate on aliases to values, not copies</p>

<p>delete(), each(), values() and hashes (e.g. <code>\(%h)</code>) in a list context return the actual values in the hash, instead of copies (as they used to in earlier versions). Typical idioms for using these constructs copy the returned values, but this can make a significant difference when creating references to the returned values. Keys in the hash are still returned as copies when iterating on a hash.</p>

<p>See also <a href="perl561delta.html#delete%28%29%2C-each%28%29%2C-values%28%29-and-hash-iteration-are-faster">&quot;delete(), each(), values() and hash iteration are faster&quot;</a>.</p>

</dd>
<dt id="vec(EXPR,OFFSET,BITS)-enforces-powers-of-two-BITS"><a class="permalink" href="perl561delta.html#vec(EXPR,OFFSET,BITS)-enforces-powers-of-two-BITS">#</a><a id="vec"></a><a id="vec-EXPR-OFFSET-BITS-enforces-powers-of-two-BITS"></a>vec(EXPR,OFFSET,BITS) enforces powers-of-two BITS</dt>
<dd>

<p>vec() generates a run-time error if the BITS argument is not a valid power-of-two integer.</p>

</dd>
<dt id="Text-of-some-diagnostic-output-has-changed"><a class="permalink" href="perl561delta.html#Text-of-some-diagnostic-output-has-changed">#</a><a id="Text"></a>Text of some diagnostic output has changed</dt>
<dd>

<p>Most references to internal Perl operations in diagnostics have been changed to be more descriptive. This may be an issue for programs that may incorrectly rely on the exact text of diagnostics for proper functioning.</p>

</dd>
<dt id="%@-has-been-removed"><a class="permalink" href="perl561delta.html#%25@-has-been-removed">#</a><a id="has-been-removed"></a><code>%@</code> has been removed</dt>
<dd>

<p>The undocumented special variable <code>%@</code> that used to accumulate &quot;background&quot; errors (such as those that happen in DESTROY()) has been removed, because it could potentially result in memory leaks.</p>

</dd>
<dt id="Parenthesized-not()-behaves-like-a-list-operator"><a class="permalink" href="perl561delta.html#Parenthesized-not()-behaves-like-a-list-operator">#</a><a id="Parenthesized"></a><a id="Parenthesized-not-behaves-like-a-list-operator"></a>Parenthesized not() behaves like a list operator</dt>
<dd>

<p>The <code>not</code> operator now falls under the &quot;if it looks like a function, it behaves like a function&quot; rule.</p>

<p>As a result, the parenthesized form can be used with <code>grep</code> and <code>map</code>. The following construct used to be a syntax error before, but it works as expected now:</p>

<pre><code>grep not($_), @things;</code></pre>

<p>On the other hand, using <code>not</code> with a literal list slice may not work. The following previously allowed construct:</p>

<pre><code>print not (1,2,3)[0];</code></pre>

<p>needs to be written with additional parentheses now:</p>

<pre><code>print not((1,2,3)[0]);</code></pre>

<p>The behavior remains unaffected when <code>not</code> is not followed by parentheses.</p>

</dd>
<dt id="Semantics-of-bareword-prototype-(*)-have-changed"><a class="permalink" href="perl561delta.html#Semantics-of-bareword-prototype-(*)-have-changed">#</a><a id="Semantics"></a><a id="Semantics-of-bareword-prototype-have-changed"></a>Semantics of bareword prototype <code>(*)</code> have changed</dt>
<dd>

<p>The semantics of the bareword prototype <code>*</code> have changed. Perl 5.005 always coerced simple scalar arguments to a typeglob, which wasn&#39;t useful in situations where the subroutine must distinguish between a simple scalar and a typeglob. The new behavior is to not coerce bareword arguments to a typeglob. The value will always be visible as either a simple scalar or as a reference to a typeglob.</p>

<p>See <a href="perl561delta.html#More-functional-bareword-prototype-%28%2A%29">&quot;More functional bareword prototype (*)&quot;</a>.</p>

</dd>
<dt id="Semantics-of-bit-operators-may-have-changed-on-64-bit-platforms"><a class="permalink" href="perl561delta.html#Semantics-of-bit-operators-may-have-changed-on-64-bit-platforms">#</a><a id="Semantics1"></a>Semantics of bit operators may have changed on 64-bit platforms</dt>
<dd>

<p>If your platform is either natively 64-bit or if Perl has been configured to used 64-bit integers, i.e., $Config{ivsize} is 8, there may be a potential incompatibility in the behavior of bitwise numeric operators (&amp; | ^ ~ &lt;&lt; &gt;&gt;). These operators used to strictly operate on the lower 32 bits of integers in previous versions, but now operate over the entire native integral width. In particular, note that unary <code>~</code> will produce different results on platforms that have different $Config{ivsize}. For portability, be sure to mask off the excess bits in the result of unary <code>~</code>, e.g., <code>~$x &amp; 0xffffffff</code>.</p>

<p>See <a href="perl561delta.html#Bit-operators-support-full-native-integer-width">&quot;Bit operators support full native integer width&quot;</a>.</p>

</dd>
<dt id="More-builtins-taint-their-results"><a class="permalink" href="perl561delta.html#More-builtins-taint-their-results">#</a><a id="More2"></a>More builtins taint their results</dt>
<dd>

<p>As described in <a href="perl561delta.html#Improved-security-features">&quot;Improved security features&quot;</a>, there may be more sources of taint in a Perl program.</p>

<p>To avoid these new tainting behaviors, you can build Perl with the Configure option <code>-Accflags=-DINCOMPLETE_TAINTS</code>. Beware that the ensuing perl binary may be insecure.</p>

</dd>
</dl>

<h2 id="C-Source-Incompatibilities"><a class="permalink" href="perl561delta.html#C-Source-Incompatibilities">#</a><a id="C"></a>C Source Incompatibilities</h2>

<dl>

<dt id="PERL_POLLUTE"><a class="permalink" href="perl561delta.html#PERL_POLLUTE">#</a><code>PERL_POLLUTE</code></dt>
<dd>

<p>Release 5.005 grandfathered old global symbol names by providing preprocessor macros for extension source compatibility. As of release 5.6.0, these preprocessor definitions are not available by default. You need to explicitly compile perl with <code>-DPERL_POLLUTE</code> to get these definitions. For extensions still using the old symbols, this option can be specified via MakeMaker:</p>

<pre><code class="plaintext">perl Makefile.PL POLLUTE=1</code></pre>

</dd>
<dt id="PERL_IMPLICIT_CONTEXT"><a class="permalink" href="perl561delta.html#PERL_IMPLICIT_CONTEXT">#</a><code>PERL_IMPLICIT_CONTEXT</code></dt>
<dd>

<p>This new build option provides a set of macros for all API functions such that an implicit interpreter/thread context argument is passed to every API function. As a result of this, something like <code>sv_setsv(foo,bar)</code> amounts to a macro invocation that actually translates to something like <code>Perl_sv_setsv(my_perl,foo,bar)</code>. While this is generally expected to not have any significant source compatibility issues, the difference between a macro and a real function call will need to be considered.</p>

<p>This means that there <b>is</b> a source compatibility issue as a result of this if your extensions attempt to use pointers to any of the Perl API functions.</p>

<p>Note that the above issue is not relevant to the default build of Perl, whose interfaces continue to match those of prior versions (but subject to the other options described here).</p>

<p>See <a href="perlguts.html#Background-and-PERL_IMPLICIT_CONTEXT">&quot;Background and PERL_IMPLICIT_CONTEXT&quot; in perlguts</a> for detailed information on the ramifications of building Perl with this option.</p>

<pre><code class="plaintext">NOTE: PERL_IMPLICIT_CONTEXT is automatically enabled whenever Perl is built
with one of -Dusethreads, -Dusemultiplicity, or both.  It is not
intended to be enabled by users at this time.</code></pre>

</dd>
<dt id="PERL_POLLUTE_MALLOC"><a class="permalink" href="perl561delta.html#PERL_POLLUTE_MALLOC">#</a><code>PERL_POLLUTE_MALLOC</code></dt>
<dd>

<p>Enabling Perl&#39;s malloc in release 5.005 and earlier caused the namespace of the system&#39;s malloc family of functions to be usurped by the Perl versions, since by default they used the same names. Besides causing problems on platforms that do not allow these functions to be cleanly replaced, this also meant that the system versions could not be called in programs that used Perl&#39;s malloc. Previous versions of Perl have allowed this behaviour to be suppressed with the HIDEMYMALLOC and EMBEDMYMALLOC preprocessor definitions.</p>

<p>As of release 5.6.0, Perl&#39;s malloc family of functions have default names distinct from the system versions. You need to explicitly compile perl with <code>-DPERL_POLLUTE_MALLOC</code> to get the older behaviour. HIDEMYMALLOC and EMBEDMYMALLOC have no effect, since the behaviour they enabled is now the default.</p>

<p>Note that these functions do <b>not</b> constitute Perl&#39;s memory allocation API. See <a href="perlguts.html#Memory-Allocation">&quot;Memory Allocation&quot; in perlguts</a> for further information about that.</p>

</dd>
</dl>

<h2 id="Compatible-C-Source-API-Changes"><a class="permalink" href="perl561delta.html#Compatible-C-Source-API-Changes">#</a><a id="Compatible"></a>Compatible C Source API Changes</h2>

<dl>

<dt id="PATCHLEVEL-is-now-PERL_VERSION"><a class="permalink" href="perl561delta.html#PATCHLEVEL-is-now-PERL_VERSION">#</a><a id="PATCHLEVEL"></a><code>PATCHLEVEL</code> is now <code>PERL_VERSION</code></dt>
<dd>

<p>The cpp macros <code>PERL_REVISION</code>, <code>PERL_VERSION</code>, and <code>PERL_SUBVERSION</code> are now available by default from perl.h, and reflect the base revision, patchlevel, and subversion respectively. <code>PERL_REVISION</code> had no prior equivalent, while <code>PERL_VERSION</code> and <code>PERL_SUBVERSION</code> were previously available as <code>PATCHLEVEL</code> and <code>SUBVERSION</code>.</p>

<p>The new names cause less pollution of the <b>cpp</b> namespace and reflect what the numbers have come to stand for in common practice. For compatibility, the old names are still supported when <i>patchlevel.h</i> is explicitly included (as required before), so there is no source incompatibility from the change.</p>

</dd>
</dl>

<h2 id="Binary-Incompatibilities"><a class="permalink" href="perl561delta.html#Binary-Incompatibilities">#</a><a id="Binary2"></a>Binary Incompatibilities</h2>

<p>In general, the default build of this release is expected to be binary compatible for extensions built with the 5.005 release or its maintenance versions. However, specific platforms may have broken binary compatibility due to changes in the defaults used in hints files. Therefore, please be sure to always check the platform-specific README files for any notes to the contrary.</p>

<p>The usethreads or usemultiplicity builds are <b>not</b> binary compatible with the corresponding builds in 5.005.</p>

<p>On platforms that require an explicit list of exports (AIX, OS/2 and Windows, among others), purely internal symbols such as parser functions and the run time opcodes are not exported by default. Perl 5.005 used to export all functions irrespective of whether they were considered part of the public API or not.</p>

<p>For the full list of public API functions, see <a href="perlapi.html">perlapi</a>.</p>

<h1 id="Known-Problems"><a class="permalink" href="perl561delta.html#Known-Problems">#</a><a id="Known"></a>Known Problems</h1>

<h2 id="Localizing-a-tied-hash-element-may-leak-memory"><a class="permalink" href="perl561delta.html#Localizing-a-tied-hash-element-may-leak-memory">#</a><a id="Localizing"></a>Localizing a tied hash element may leak memory</h2>

<p>As of the 5.6.1 release, there is a known leak when code such as this is executed:</p>

<pre><code>use Tie::Hash;
tie my %tie_hash =&gt; &#39;Tie::StdHash&#39;;

...

local($tie_hash{Foo}) = 1; # leaks</code></pre>

<h2 id="Known-test-failures"><a class="permalink" href="perl561delta.html#Known-test-failures">#</a><a id="Known1"></a>Known test failures</h2>

<ul>

<li><p>64-bit builds</p>

<p>Subtest #15 of lib/b.t may fail under 64-bit builds on platforms such as HP-UX PA64 and Linux IA64. The issue is still being investigated.</p>

<p>The lib/io_multihomed test may hang in HP-UX if Perl has been configured to be 64-bit. Because other 64-bit platforms do not hang in this test, HP-UX is suspect. All other tests pass in 64-bit HP-UX. The test attempts to create and connect to &quot;multihomed&quot; sockets (sockets which have multiple IP addresses).</p>

<p>Note that 64-bit support is still experimental.</p>

</li>
<li><p>Failure of Thread tests</p>

<p>The subtests 19 and 20 of lib/thr5005.t test are known to fail due to fundamental problems in the 5.005 threading implementation. These are not new failures--Perl 5.005_0x has the same bugs, but didn&#39;t have these tests. (Note that support for 5.005-style threading remains experimental.)</p>

</li>
<li><p>NEXTSTEP 3.3 POSIX test failure</p>

<p>In NEXTSTEP 3.3p2 the implementation of the strftime(3) in the operating system libraries is buggy: the %j format numbers the days of a month starting from zero, which, while being logical to programmers, will cause the subtests 19 to 27 of the lib/posix test may fail.</p>

</li>
<li><p>Tru64 (aka Digital UNIX, aka DEC OSF/1) lib/sdbm test failure with gcc</p>

<p>If compiled with gcc 2.95 the lib/sdbm test will fail (dump core). The cure is to use the vendor cc, it comes with the operating system and produces good code.</p>

</li>
</ul>

<h2 id="EBCDIC-platforms-not-fully-supported"><a class="permalink" href="perl561delta.html#EBCDIC-platforms-not-fully-supported">#</a><a id="EBCDIC"></a>EBCDIC platforms not fully supported</h2>

<p>In earlier releases of Perl, EBCDIC environments like OS390 (also known as Open Edition MVS) and VM-ESA were supported. Due to changes required by the UTF-8 (Unicode) support, the EBCDIC platforms are not supported in Perl 5.6.0.</p>

<p>The 5.6.1 release improves support for EBCDIC platforms, but they are not fully supported yet.</p>

<h2 id="UNICOS/mk-CC-failures-during-Configure-run"><a class="permalink" href="perl561delta.html#UNICOS/mk-CC-failures-during-Configure-run">#</a><a id="UNICOS"></a><a id="UNICOS-mk-CC-failures-during-Configure-run"></a>UNICOS/mk CC failures during Configure run</h2>

<p>In UNICOS/mk the following errors may appear during the Configure run:</p>

<pre><code class="plaintext">Guessing which symbols your C compiler and preprocessor define...
CC-20 cc: ERROR File = try.c, Line = 3
...
  bad switch yylook 79bad switch yylook 79bad switch yylook 79bad switch yylook 79#ifdef A29K
...
4 errors detected in the compilation of &quot;try.c&quot;.</code></pre>

<p>The culprit is the broken awk of UNICOS/mk. The effect is fortunately rather mild: Perl itself is not adversely affected by the error, only the h2ph utility coming with Perl, and that is rather rarely needed these days.</p>

<h2 id="Arrow-operator-and-arrays"><a class="permalink" href="perl561delta.html#Arrow-operator-and-arrays">#</a><a id="Arrow"></a>Arrow operator and arrays</h2>

<p>When the left argument to the arrow operator <code>-&gt;</code> is an array, or the <code>scalar</code> operator operating on an array, the result of the operation must be considered erroneous. For example:</p>

<pre><code>@x-&gt;[2]
scalar(@x)-&gt;[2]</code></pre>

<p>These expressions will get run-time errors in some future release of Perl.</p>

<h2 id="Experimental-features"><a class="permalink" href="perl561delta.html#Experimental-features">#</a><a id="Experimental"></a>Experimental features</h2>

<p>As discussed above, many features are still experimental. Interfaces and implementation of these features are subject to change, and in extreme cases, even subject to removal in some future release of Perl. These features include the following:</p>

<dl>

<dt id="Threads"><a class="permalink" href="perl561delta.html#Threads">#</a>Threads</dt>
<dd>

</dd>
<dt id="Unicode"><a class="permalink" href="perl561delta.html#Unicode">#</a>Unicode</dt>
<dd>

</dd>
<dt id="64-bit-support2"><a class="permalink" href="perl561delta.html#64-bit-support2">#</a><a id="642"></a><a id="bit-support2"></a>64-bit support</dt>
<dd>

</dd>
<dt id="Lvalue-subroutines2"><a class="permalink" href="perl561delta.html#Lvalue-subroutines2">#</a><a id="Lvalue3"></a>Lvalue subroutines</dt>
<dd>

</dd>
<dt id="Weak-references1"><a class="permalink" href="perl561delta.html#Weak-references1">#</a><a id="Weak1"></a>Weak references</dt>
<dd>

</dd>
<dt id="The-pseudo-hash-data-type"><a class="permalink" href="perl561delta.html#The-pseudo-hash-data-type">#</a><a id="The1"></a>The pseudo-hash data type</dt>
<dd>

</dd>
<dt id="The-Compiler-suite"><a class="permalink" href="perl561delta.html#The-Compiler-suite">#</a><a id="The2"></a>The Compiler suite</dt>
<dd>

</dd>
<dt id="Internal-implementation-of-file-globbing"><a class="permalink" href="perl561delta.html#Internal-implementation-of-file-globbing">#</a><a id="Internal"></a>Internal implementation of file globbing</dt>
<dd>

</dd>
<dt id="The-DB-module"><a class="permalink" href="perl561delta.html#The-DB-module">#</a><a id="The3"></a>The DB module</dt>
<dd>

</dd>
<dt id="The-regular-expression-code-constructs:"><a class="permalink" href="perl561delta.html#The-regular-expression-code-constructs:">#</a><a id="The4"></a><a id="The-regular-expression-code-constructs"></a>The regular expression code constructs:</dt>
<dd>

<p><code>(?{ code })</code> and <code>(??{ code })</code></p>

</dd>
</dl>

<h1 id="Obsolete-Diagnostics"><a class="permalink" href="perl561delta.html#Obsolete-Diagnostics">#</a><a id="Obsolete"></a>Obsolete Diagnostics</h1>

<dl>

<dt id="Character-class-syntax-[:-:]-is-reserved-for-future-extensions"><a class="permalink" href="perl561delta.html#Character-class-syntax-%5B:-:%5D-is-reserved-for-future-extensions">#</a><a id="Character2"></a><a id="Character-class-syntax-:-:-is-reserved-for-future-extensions"></a>Character class syntax [: :] is reserved for future extensions</dt>
<dd>

<p>(W) Within regular expression character classes ([]) the syntax beginning with &quot;[:&quot; and ending with &quot;:]&quot; is reserved for future extensions. If you need to represent those character sequences inside a regular expression character class, just quote the square brackets with the backslash: &quot;\[:&quot; and &quot;:\]&quot;.</p>

</dd>
<dt id="Ill-formed-logical-name-|%s|-in-prime_env_iter"><a class="permalink" href="perl561delta.html#Ill-formed-logical-name-%7C%25s%7C-in-prime_env_iter">#</a><a id="Ill2"></a><a id="Ill-formed-logical-name-s-in-prime_env_iter"></a>Ill-formed logical name |%s| in prime_env_iter</dt>
<dd>

<p>(W) A warning peculiar to VMS. A logical name was encountered when preparing to iterate over %ENV which violates the syntactic rules governing logical names. Because it cannot be translated normally, it is skipped, and will not appear in %ENV. This may be a benign occurrence, as some software packages might directly modify logical name tables and introduce nonstandard names, or it may indicate that a logical name table has been corrupted.</p>

</dd>
<dt id="In-string,-@%s-now-must-be-written-as-\@%s"><a class="permalink" href="perl561delta.html#In-string,-@%25s-now-must-be-written-as-%5C@%25s">#</a><a id="In"></a><a id="In-string-s-now-must-be-written-as-s"></a>In string, @%s now must be written as \@%s</dt>
<dd>

<p>The description of this error used to say:</p>

<pre><code class="plaintext">(Someday it will simply assume that an unbackslashed @
 interpolates an array.)</code></pre>

<p>That day has come, and this fatal error has been removed. It has been replaced by a non-fatal warning instead. See <a href="perl561delta.html#Arrays-now-always-interpolate-into-double-quoted-strings">&quot;Arrays now always interpolate into double-quoted strings&quot;</a> for details.</p>

</dd>
<dt id="Probable-precedence-problem-on-%s"><a class="permalink" href="perl561delta.html#Probable-precedence-problem-on-%25s">#</a><a id="Probable"></a><a id="Probable-precedence-problem-on-s"></a>Probable precedence problem on %s</dt>
<dd>

<p>(W) The compiler found a bareword where it expected a conditional, which often indicates that an || or &amp;&amp; was parsed as part of the last argument of the previous construct, for example:</p>

<pre><code>open FOO || die;</code></pre>

</dd>
<dt id="regexp-too-big"><a class="permalink" href="perl561delta.html#regexp-too-big">#</a><a id="regexp"></a>regexp too big</dt>
<dd>

<p>(F) The current implementation of regular expressions uses shorts as address offsets within a string. Unfortunately this means that if the regular expression compiles to longer than 32767, it&#39;ll blow up. Usually when you want a regular expression this big, there is a better way to do it with multiple statements. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="Use-of-&quot;$$&quot;-to-mean-&quot;${$}&quot;-is-deprecated"><a class="permalink" href="perl561delta.html#Use-of-%22$$%22-to-mean-%22$%7B$%7D%22-is-deprecated">#</a><a id="Use-of-&quot;$$&lt;digit&gt;&quot;-to-mean-&quot;${$}&lt;digit&gt;&quot;-is-deprecated"></a><a id="Use"></a><a id="Use-of-digit-to-mean-digit-is-deprecated"></a>Use of &quot;$$&lt;digit&gt;&quot; to mean &quot;${$}&lt;digit&gt;&quot; is deprecated</dt>
<dd>

<p>(D) Perl versions before 5.004 misinterpreted any type marker followed by &quot;$&quot; and a digit. For example, &quot;$$0&quot; was incorrectly taken to mean &quot;${$}0&quot; instead of &quot;${$0}&quot;. This bug is (mostly) fixed in Perl 5.004.</p>

<p>However, the developers of Perl 5.004 could not fix this bug completely, because at least two widely-used modules depend on the old meaning of &quot;$$0&quot; in a string. So Perl 5.004 still interprets &quot;$$&lt;digit&gt;&quot; in the old (broken) way inside strings; but it generates this message as a warning. And in Perl 5.005, this special treatment will cease.</p>

</dd>
</dl>

<h1 id="Reporting-Bugs"><a class="permalink" href="perl561delta.html#Reporting-Bugs">#</a><a id="Reporting"></a>Reporting Bugs</h1>

<p>If you find what you think is a bug, you might check the articles recently posted to the comp.lang.perl.misc newsgroup. There may also be information at http://www.perl.com/ , the Perl Home Page.</p>

<p>If you believe you have an unreported bug, please run the <b>perlbug</b> program included with your release. Be sure to trim your bug down to a tiny but sufficient test case. Your bug report, along with the output of <code>perl -V</code>, will be sent off to perlbug@perl.org to be analysed by the Perl porting team.</p>

<h1 id="SEE-ALSO"><a class="permalink" href="perl561delta.html#SEE-ALSO">#</a><a id="SEE"></a>SEE ALSO</h1>

<p>The <i>Changes</i> file for exhaustive details on what changed.</p>

<p>The <i>INSTALL</i> file for how to build Perl.</p>

<p>The <i>README</i> file for general stuff.</p>

<p>The <i>Artistic</i> and <i>Copying</i> files for copyright information.</p>

<h1 id="HISTORY"><a class="permalink" href="perl561delta.html#HISTORY">#</a>HISTORY</h1>

<p>Written by Gurusamy Sarathy &lt;<i>gsar@ActiveState.com</i>&gt;, with many contributions from The Perl Porters.</p>

<p>Send omissions or corrections to &lt;<i>perlbug@perl.org</i>&gt;.</p>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
